Skip to content
New issue

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

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

Already on GitHub? # to your account

click radio button fire event twice #1680

Closed
coader opened this issue Nov 25, 2021 · 2 comments
Closed

click radio button fire event twice #1680

coader opened this issue Nov 25, 2021 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@coader
Copy link

coader commented Nov 25, 2021

TuSimple/naive-ui version (版本)

2.21.1

Vue version (Vue 版本)

3.2.22

Browser and its version (浏览器及其版本)

Chrome 90

System and its version (系统及其版本)

Win10

Node version (Node 版本)

Reappearance link (重现链接)

https://codesandbox.io/s/crazy-hertz-y8vux

Reappearance steps (重现步骤)

click radio button

Expected results (期望的结果)

fire once

Actual results (实际的结果)

fire twice

Remarks (补充说明)

@github-actions github-actions bot added the untriaged need to sort label Nov 25, 2021
@XieZongChen XieZongChen self-assigned this Nov 26, 2021
@XieZongChen XieZongChen added consideration-needed and removed untriaged need to sort labels Nov 26, 2021
@07akioni 07akioni added the bug Something isn't working label Nov 27, 2021
@07akioni
Copy link
Collaborator

07akioni commented Dec 9, 2021

@amadeus711 就用 stopPropagation 解决吧,感觉没啥特别好的办法

@07akioni
Copy link
Collaborator

07akioni commented Dec 9, 2021

或者你有时间参考一下 rc-checkbox 做了什么事,我估计他们也得处理这个问题

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants