From 383dfa00376a7bdfe2bffc2358ed4e0d59ff17d1 Mon Sep 17 00:00:00 2001 From: Christopher Ng Date: Thu, 18 Jan 2024 14:31:30 -0800 Subject: [PATCH] fix(NcCheckboxRadioSwitch): Fix invalid indeterminate checkbox semantics Signed-off-by: Christopher Ng --- .../NcCheckboxRadioSwitch.vue | 28 +++++++++---------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/src/components/NcCheckboxRadioSwitch/NcCheckboxRadioSwitch.vue b/src/components/NcCheckboxRadioSwitch/NcCheckboxRadioSwitch.vue index 7a5fca2868..a120b6356c 100644 --- a/src/components/NcCheckboxRadioSwitch/NcCheckboxRadioSwitch.vue +++ b/src/components/NcCheckboxRadioSwitch/NcCheckboxRadioSwitch.vue @@ -265,7 +265,7 @@ export default { ['checkbox-radio-switch-' + type]: type, 'checkbox-radio-switch--checked': isChecked, 'checkbox-radio-switch--disabled': disabled, - 'checkbox-radio-switch--indeterminate': indeterminate, + 'checkbox-radio-switch--indeterminate': hasIndeterminate ? indeterminate : false, 'checkbox-radio-switch--button-variant': buttonVariant, 'checkbox-radio-switch--button-variant-v-grouped': buttonVariant && buttonVariantGrouped === 'vertical', 'checkbox-radio-switch--button-variant-h-grouped': buttonVariant && buttonVariantGrouped === 'horizontal', @@ -283,14 +283,17 @@ export default { :disabled="disabled" :type="inputType" :value="value" - v-bind="inputProps" + :checked="isChecked" + :indeterminate.prop="hasIndeterminate ? indeterminate : null" + :required="required" + :name="name" v-on="listeners">