fix CheckboxForm modelValue test
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Simon Vieille 2024-04-18 20:28:17 +02:00
parent f8809926c1
commit 271bd1a15e
Signed by: deblan
GPG key ID: 579388D585F70417

View file

@ -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)"