diff --git a/src/ui/CheckboxForm.vue b/src/ui/CheckboxForm.vue index 2856247..cc45b87 100644 --- a/src/ui/CheckboxForm.vue +++ b/src/ui/CheckboxForm.vue @@ -3,7 +3,7 @@ :id="id" class="mr-2 rounded-md border-gray-300 shadow-sm focus:border-indigo-300 focus:ring focus:ring-indigo-200 focus:ring-opacity-50" type="checkbox" - :checked="modelValue === 'true'" + :checked="modelValue === 'true' || modelValue === true" :class="$attrs.class" @change="$emit('change', $event)" @input="$emit('update:modelValue', $event.target.checked)"