fixed init of checked for readonly

This commit is contained in:
dcore94 2023-06-07 18:28:26 +02:00
parent 20ac50bc22
commit 63e0c8c415
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ class CCPInputWidgetEditorController extends HTMLElement{
<div class="col" title="Read only">
<label>Read only</label>
<div class="form-field">
<input type="checkbox" checked="${this.#input.schema.readOnly}" name="readonly" class="form-check-input">
<input type="checkbox" ${this.#input.schema.readOnly ? 'checked' : ''} name="readonly" class="form-check-input">
</div>
</div>
</div>