fixed type selector

This commit is contained in:
dcore94 2023-09-27 17:03:00 +02:00
parent 5e8129b440
commit 0f7bbacce3
1 changed files with 2 additions and 2 deletions

View File

@ -86,8 +86,8 @@ class CCPInputWidgetEditorController extends HTMLElement{
<div class="form-field" title="Type">
<label>Type</label>
<select name="type" class="form-control" placeholder="type" value="${this.#type}" ${ input.id === 'ccpimage' ? 'readonly' : ''}>
<option value="string">String</option>
<option value="enum">Enum</option>
<option value="string" ${this.#type === "string" ? "selected" : ""}>String</option>
<option value="enum" ${this.#type === "enum" ? "selected" : ""}>Enum</option>
</select>
</div>
</div>