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

[BUG] update:checked on a-checkbox is called twice on value change #3838

Closed
1 task done
CarterLi opened this issue Mar 23, 2021 · 2 comments
Closed
1 task done

[BUG] update:checked on a-checkbox is called twice on value change #3838

CarterLi opened this issue Mar 23, 2021 · 2 comments

Comments

@CarterLi
Copy link
Contributor

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

Version

2.1.0

Environment

3.0.7

Reproduction link

http://example.com

Steps to reproduce

<a-checkbox :checked="false" @update:checked="test">test</a-checkbox>
test(value) {
  console.log(value)
}

What is expected?

test should only be called once with value true

What is actually happening?

test is called twice. Antdv passes an event object at the first time, which is not expected.

Others

image

https://github.com/vueComponent/ant-design-vue/blob/next/components/vc-checkbox/src/Checkbox.jsx#L92

@zkwolf
Copy link
Member

zkwolf commented Apr 1, 2021

Will be fixed in next release.

@zkwolf zkwolf closed this as completed Apr 1, 2021
@github-actions
Copy link

github-actions bot commented Apr 2, 2022

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 Apr 2, 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