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