Skip to content

Commit

Permalink
fix(VCheckbox): use internal indeterminate value
Browse files Browse the repository at this point in the history
fixes #17389
  • Loading branch information
KaelWD committed May 16, 2023
1 parent 6d8ad58 commit a3150c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/vuetify/src/components/VCheckbox/VCheckboxBtn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ export const VCheckboxBtn = genericComponent<VSelectionControlSlots>()({
}

const falseIcon = computed(() => {
return props.indeterminate
return indeterminate.value
? props.indeterminateIcon
: props.falseIcon
})

const trueIcon = computed(() => {
return props.indeterminate
return indeterminate.value
? props.indeterminateIcon
: props.trueIcon
})
Expand All @@ -68,7 +68,7 @@ export const VCheckboxBtn = genericComponent<VSelectionControlSlots>()({
onUpdate:modelValue={ onChange }
falseIcon={ falseIcon.value }
trueIcon={ trueIcon.value }
aria-checked={ props.indeterminate ? 'mixed' : undefined }
aria-checked={ indeterminate.value ? 'mixed' : undefined }
v-slots={ slots }
/>
))
Expand Down

0 comments on commit a3150c4

Please sign in to comment.