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

trigger('click') does not work with custom checkboxes #971

Closed
nemtsov opened this issue Sep 16, 2018 · 2 comments
Closed

trigger('click') does not work with custom checkboxes #971

nemtsov opened this issue Sep 16, 2018 · 2 comments
Labels

Comments

@nemtsov
Copy link

nemtsov commented Sep 16, 2018

Version

1.0.0-beta.25

Reproduction link

https://codesandbox.io/s/oxw0nk954z

Steps to reproduce

  1. Click on the use wrapper.trigger('click') button. Notice that nothing happens.
  2. Click on the use element.click() button. Notice that the second checkbox gets selected.

The first one is using boxes.at(1).trigger("click") and the second uses boxes.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 with element.click().

@dietergeerts
Copy link

I see this being closed, but I experience this issue currently, on v.1.0.0-beta.28

@JessicaSachs
Copy link
Collaborator

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
Labels
Projects
None yet
Development

No branches or pull requests

4 participants