There was an error while loading. Please reload this page.
1 parent 96d0b45 commit a9f70baCopy full SHA for a9f70ba
src/components/Checkbox/Checkbox.vue
@@ -114,7 +114,7 @@ export interface CheckboxProps extends ChoiceBleedProps {
114
error?: Error | boolean;
115
/** Indicates the tone of the checkbox */
116
tone?: 'magic';
117
- /** custom disable focus - for case Slot use checkbox in Combobox -> focus -> close popover*/
+ /** Disable auto focus to input when click to checkbox*/
118
disableFocus?: boolean;
119
}
120
@@ -236,6 +236,7 @@ const handleOnClick = () => {
236
237
model.value = inputNode.value.checked;
238
239
+ // Props use for fix case Checkbox use as slot of Combobox Component -> auto close popover when change focus
240
if (!props.disableFocus) {
241
inputNode.value.focus();
242
0 commit comments