mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-11-29 18:48:32 +08:00
fix(checkbox): onClick event triggered twice (#5363)
Co-authored-by: 张宏亮 <hongliang@yunshan.net>
This commit is contained in:
parent
17acda5655
commit
47e218d7ab
@ -72,6 +72,7 @@ export default defineComponent({
|
||||
id,
|
||||
prefixCls: prefixCls.value,
|
||||
...restAttrs,
|
||||
onClick,
|
||||
};
|
||||
if (checkboxGroup && !skipGroup) {
|
||||
checkboxProps.onChange = (...args) => {
|
||||
@ -103,7 +104,6 @@ export default defineComponent({
|
||||
style={style}
|
||||
onMouseenter={onMouseenter as EventHandler}
|
||||
onMouseleave={onMouseleave as EventHandler}
|
||||
onClick={onClick}
|
||||
>
|
||||
<VcCheckbox {...checkboxProps} class={checkboxClass} ref={checkboxRef} />
|
||||
{children.length ? <span>{children}</span> : null}
|
||||
|
Loading…
Reference in New Issue
Block a user