From 2feab99b89c1451b03a555ab9d8673692faec3ca Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Thu, 24 Mar 2022 14:07:41 +0800 Subject: [PATCH] fix: radio click trigger twice, close #5389 --- components/radio/Radio.tsx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/components/radio/Radio.tsx b/components/radio/Radio.tsx index e3d1f491f7..4d5f3d6e03 100644 --- a/components/radio/Radio.tsx +++ b/components/radio/Radio.tsx @@ -61,12 +61,7 @@ export default defineComponent({ return () => { const radioGroup = radioGroupContext; - const { - prefixCls: customizePrefixCls, - id = formItemContext.id.value, - onClick, - ...restProps - } = props; + const { prefixCls: customizePrefixCls, id = formItemContext.id.value, ...restProps } = props; const rProps: RadioProps = { prefixCls: prefixCls.value, @@ -90,7 +85,7 @@ export default defineComponent({ }); return ( -