On some touch devices, if the code responds to a click event on a checkbox (<input type="checkbox">) and tries to modify the checked attribute, it seems to toggle the checkbox:
Click on checkbox.
Click event handler sets checked to true.
Checkbox ends up being unchecked.
If the same event handler responds to a change event, then it works fine. So this PR modifies the selector code to respond to change events on the checkboxes. This works fine in desktop browsers and fixes the issue with mobile/touch-based browsers.
Fixes: #1476
On some touch devices, if the code responds to a click event on a checkbox (
<input type="checkbox">
) and tries to modify thechecked
attribute, it seems to toggle the checkbox:checked
to true.If the same event handler responds to a
change
event, then it works fine. So this PR modifies the selector code to respond tochange
events on the checkboxes. This works fine in desktop browsers and fixes the issue with mobile/touch-based browsers.