Closed
Description
Version
1.0.0-beta.25
Reproduction link
https://codesandbox.io/s/oxw0nk954z
Steps to reproduce
- Click on the
use wrapper.trigger('click')
button. Notice that nothing happens. - 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()
.