diff --git a/src/components/checkbox/VCheckbox.vue b/src/components/checkbox/VCheckbox.vue index 1c1cfc2..9992c58 100644 --- a/src/components/checkbox/VCheckbox.vue +++ b/src/components/checkbox/VCheckbox.vue @@ -25,7 +25,11 @@ const typeMessage = computed(() => { else return undefined }); -const binary = computed(() => Array.isArray(props.modelValue) ? undefined : props.modelValue) +const binary = computed(() => { + if (typeof props.binary === 'boolean') return props.binary; + return typeof props.modelValue === 'boolean'; +}); + const labelState = computed(() => { if((!!props.errorMessage || props.type === 'error') && !props.disabled) return 'error';