Fixed small bug with checkbox not having initial value
This commit is contained in:
1 parent
b48db8bb37
commit
6c1dda9622
1 file changed
+1
@@ -129,6 +129,7 @@ watch(
|
|||||||
<Checkbox
|
<Checkbox
|
||||||
v-else-if="field.type == 'checkbox'"
|
v-else-if="field.type == 'checkbox'"
|
||||||
:label="field.label || field.key"
|
:label="field.label || field.key"
|
||||||
|
:model-value="localItem[field.key]"
|
||||||
@change="(v) => (localItem[field.key] = v)"
|
@change="(v) => (localItem[field.key] = v)"
|
||||||
/>
|
/>
|
||||||
<Input
|
<Input
|
||||||
|
|||||||
Reference in new issue
Block a user