fixed value of enum widget
This commit is contained in:
parent
8ba61ffe36
commit
c300505b50
|
@ -112,7 +112,7 @@ class CCPInputWidgetEditorController extends HTMLElement{
|
||||||
</div>
|
</div>
|
||||||
<div name="enum-input" class="${this.#type !== 'enum' ? 'd-none' : ''} mb-3">
|
<div name="enum-input" class="${this.#type !== 'enum' ? 'd-none' : ''} mb-3">
|
||||||
<div class="form-field" title="options">
|
<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>
|
<small class="form-text text-muted">Comma separated list of options</small>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue