diff --git a/components/checkbox/Checkbox.tsx b/components/checkbox/Checkbox.tsx index 8383b2fd27..f08ce38f2f 100644 --- a/components/checkbox/Checkbox.tsx +++ b/components/checkbox/Checkbox.tsx @@ -59,20 +59,13 @@ export default defineComponent({ }); return () => { const children = flattenChildren(slots.default?.()); - const { - indeterminate, - skipGroup, - id = formItemContext.id.value, - onClick, - ...restProps - } = props; + const { indeterminate, skipGroup, id = formItemContext.id.value, ...restProps } = props; const { onMouseenter, onMouseleave, onInput, class: className, style, ...restAttrs } = attrs; const checkboxProps: CheckboxProps = { ...restProps, id, prefixCls: prefixCls.value, ...restAttrs, - onClick, }; if (checkboxGroup && !skipGroup) { checkboxProps.onChange = (...args) => {