bind checked

This commit is contained in:
Martin McKeaveney 2020-09-10 13:10:57 +01:00
parent 2abd6ed7b2
commit c4eda0f1e7
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@
{:else if schema[field].type === 'datetime'}
<DatePicker bind:value={record[field]} />
{:else if schema[field].type === 'boolean'}
<input class="input" type="checkbox" bind:value={record[field]} />
<input class="input" type="checkbox" bind:checked={record[field]} />
{:else if schema[field].type === 'number'}
<input class="input" type="number" bind:value={record[field]} />
{:else if schema[field].type === 'string'}