-
Notifications
You must be signed in to change notification settings - Fork 669
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
trigger('click') does not work with custom checkboxes #971
Labels
Comments
I see this being closed, but I experience this issue currently, on v.1.0.0-beta.28 |
Can you open a new issue with your reproduction? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
1.0.0-beta.25
Reproduction link
https://codesandbox.io/s/oxw0nk954z
Steps to reproduce
use wrapper.trigger('click')
button. Notice that nothing happens.use element.click()
button. Notice that the second checkbox gets selected.The first one is using
boxes.at(1).trigger("click")
and the second usesboxes.at(1).element.click()
. If I understood the docs correctly, both should have exactly the same behavior. But, as the repro demonstrates, only the latter works.What is expected?
Clicking on the
use wrapper.trigger('click')
button would select the first checkbox.What is actually happening?
Nothing.
Additionally,
attachToDocument: true
must be set for this to work withelement.click()
.The text was updated successfully, but these errors were encountered: