fixed value of enum widget

This commit is contained in:
dcore94 2023-02-06 12:27:06 +01:00
parent 8ba61ffe36
commit c300505b50
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ class CCPInputWidgetEditorController extends HTMLElement{
</div>
<div name="enum-input" class="${this.#type !== 'enum' ? 'd-none' : ''} mb-3">
<div class="form-field" title="options">
<input name="options" class="form-control" type="text" placeholder="option"/>
<input name="options" class="form-control" type="text" placeholder="option" value="${this.#input.schema.enum ? this.#input.schema.enum.join(',') : ''}"/>
<small class="form-text text-muted">Comma separated list of options</small>
</div>
</div>