-
Notifications
You must be signed in to change notification settings - Fork 668
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
Ensure setChecked() and setSelected() only trigger DOM events when state is changed (fix #1339) #1380
Conversation
Selecting already-selected radio buttons or checking already-checked checkboxes should not trigger events.
Older versions of Vue use the `click` DOM event for updating radio/checkbox `v-model`s.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I've added some comments related to test titles, to keep them consistent with previous ones :)
Thank you for this! 🙌
Co-Authored-By: Adrià Fontcuberta <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me! 👍
Pinging @dobromir-hristov and @JessicaSachs as they shared their thoughts on the issue :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a minor comment :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Has an approve and all tests passing, let's merge this up. Nice job!!
Wrapper.setChecked()
andWrapper.setSelected()
should not trigger DOM events when called on already checked or selected elements.Closes #1339