ui: Fix checked state not correctly registered

This commit is contained in:
nemunaire 2024-02-06 14:26:39 +01:00
parent 991363a800
commit e6e05290c7
1 changed files with 15 additions and 0 deletions

View File

@ -111,6 +111,21 @@
<option value={opt}>{opt}</option>
{/each}
</Input>
{:else if inputtype === "checkbox"}
<Input
id={'spec-' + index + '-' + specs.id}
type={inputtype}
class="fw-bold"
{feedback}
invalid={feedback !== undefined}
placeholder={specs.placeholder}
plaintext={!edit}
readonly={!edit}
required={specs.required}
bind:checked={value}
on:focus={() => dispatch("focus")}
on:blur={() => dispatch("blur")}
/>
{:else}
<Input
id={'spec-' + index + '-' + specs.id}