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

The checkbox click event of the Transfer component fires repeatedly #6010

Closed
1 task done
chenjiezi opened this issue Oct 9, 2022 · 3 comments · Fixed by #6902
Closed
1 task done

The checkbox click event of the Transfer component fires repeatedly #6010

chenjiezi opened this issue Oct 9, 2022 · 3 comments · Fixed by #6902
Labels
Accept You are right, we should do that enhancement outdated

Comments

@chenjiezi
Copy link

chenjiezi commented Oct 9, 2022

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.3.0-beta.2

Environment

none

Reproduction link

https://www.antdv.com/components/transfer-cn#components-transfer-demo-basic

Steps to reproduce

鼠标放在在多选框外包裹的一层label.ant-checkbox-wrapper的空白处上,点击会触发两次onSelectChange事件回调。

What is expected?

不要重复触发点击事件。

What is actually happening?

只触发一次点击事件

@github-actions github-actions bot changed the title Transfer组件的checkbox点击事件重复触发 The checkbox click event of the Transfer component fires repeatedly Oct 9, 2022
@chenjiezi
Copy link
Author

chenjiezi commented Oct 9, 2022

image
image
鼠标点击红点标记处,复现问题。

@chenjiezi
Copy link
Author

我的解决方案是label.ant-checkbox-wrapper元素的高度和span.ant-checkbox元素的高度保持一致。

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Accept You are right, we should do that enhancement outdated
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants