ui: Fix checked state not correctly registered
This commit is contained in:
parent
991363a800
commit
e6e05290c7
|
@ -111,6 +111,21 @@
|
||||||
<option value={opt}>{opt}</option>
|
<option value={opt}>{opt}</option>
|
||||||
{/each}
|
{/each}
|
||||||
</Input>
|
</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}
|
{:else}
|
||||||
<Input
|
<Input
|
||||||
id={'spec-' + index + '-' + specs.id}
|
id={'spec-' + index + '-' + specs.id}
|
||||||
|
|
Loading…
Reference in New Issue