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

a-radio-group 绑定value,change事件不触发 #3047

Closed
1 task done
mudi-1125 opened this issue Oct 27, 2020 · 6 comments
Closed
1 task done

a-radio-group 绑定value,change事件不触发 #3047

mudi-1125 opened this issue Oct 27, 2020 · 6 comments
Assignees

Comments

@mudi-1125
Copy link

mudi-1125 commented Oct 27, 2020

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

Version

1.6.5

Environment

vue:2.6.12 Chrome86

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  1. 点击tab2,确认框点取消
  2. 再次点击tab2

What is expected?

  1. 点击tab2,确认框点取消
  2. 再次点击tab2,确认框弹出

What is actually happening?

  1. 点击tab2,确认框点取消
  2. 再次点击tab2,确认框没弹出

内部input的checked值已经改成true了,所以input的change事件不再触发

@ghost
Copy link

ghost commented Nov 23, 2020

请问你解决了吗,我也碰到这个问题了

@mudi-1125
Copy link
Author

@QiFeiLXH 官方貌似没有跟进这个问题

@zkwolf zkwolf self-assigned this Nov 30, 2020
@tangjinzhou
Copy link
Member

@tangjinzhou
Copy link
Member

原生规范 radio 就是不可以取消的 目前保持和原生一致 具体原因可以查看上述链接

@zkwolf
Copy link
Member

zkwolf commented Dec 3, 2020

https://codesandbox.io/s/danxuanzuhe-antd486-forked-yl0fq?file=/index.js 我觉得可以讨论一下,ant-design目前在onChange的时候不改变当前值是可以的

@tangjinzhou tangjinzhou reopened this Dec 3, 2020
@zkwolf zkwolf added the 2.x for 2.x label Dec 4, 2020
zkwolf added a commit to zkwolf/ant-design-vue that referenced this issue Jan 11, 2021
tangjinzhou pushed a commit that referenced this issue Jan 14, 2021
* fix: radio cancel change #3047

* chore: update checkbox
@zkwolf zkwolf closed this as completed Jan 14, 2021
@github-actions
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 Jan 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants