Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Radio] 开启 allowUncheck,选中的时候 onChange 会触发两次 #1421

Closed
BuptStEve opened this issue Sep 2, 2022 · 3 comments
Closed
Assignees

Comments

@BuptStEve
Copy link

tdesign-react 版本

0.40.5

重现链接

https://codesandbox.io/s/tdesign-react-demo-forked-ule4fk?file=/src/demo.jsx

重现步骤

企业微信截图_247f3d8c-6a6f-4e61-a7c4-4e17d84df964

点击 radio 后,查看 console 即可

期望结果

onChange 只触发一次

实际结果

触发了两次

框架版本

React 17.0.2

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

@github-actions
Copy link
Contributor

github-actions bot commented Sep 2, 2022

👋 @BuptStEve,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@github-actions
Copy link
Contributor

github-actions bot commented Sep 2, 2022

♥️ 有劳 @jas0ncn @HQ-Lin @psaren @carolin913 @samhou1988 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @BuptStEve

@uyarn
Copy link
Collaborator

uyarn commented Sep 7, 2022

fixed 0.40.6

@uyarn uyarn closed this as completed Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants