Closed
Description
Version
1.0.0-beta.27
Reproduction link
https://codesandbox.io/s/00x1v7krl
Steps to reproduce
- Create a wrapper containing only a checkbox
- Call
setChecked(true)
on the wrapper - Check, whether the
checked
value of the checkbox has changed
What is expected?
The checked
value of the checkbox should be true.
What is actually happening?
The checked
value of the checkbox remains unchanged.
I think the problem here is, that first
checkboxWrapper.element.checked = true
changes the checked
value of the checkbox, then
checkboxWrapper.trigger('click')
changes it back.
Occured in chrome 70, but from the logic of the setChecked method, i assume majority of modern browsers are affected. In PhantomJS this works as expected.