MouseEvent('click') on input[radio/checkbox] does not fire "change" event when input is not attached to body
Reported by
mjsta...@gmail.com,
Oct 11 2017
|
|||||
Issue description
UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0) Gecko/20100101 Firefox/56.0
Steps to reproduce the problem:
1. Create an input element of type radio with DOM APIs
2. attach eventListener "change" to radio
3. dispatch MouseEvent('click)on radio
See http://embed.plnkr.co/YyVkQb2U80yytr7zwWJm/ for demo
What is the expected behavior?
the eventListener "change" on the radio is called
What went wrong?
The eventListener is not called.
Did this work before? N/A
Chrome version: 61.0.3163.100 Channel: n/a
OS Version: 10.0
Flash Version:
I don't know if anything is in the spec that handles this behavior. The relevant part about events I found here: https://html.spec.whatwg.org/multipage/input.html#radio-button-state-(type=radio)
Firefox / IE / Edge fire the "change" event correctly, Safari does not. So this possibly goes back to Webkit.
,
Oct 11 2017
,
Oct 12 2017
,
Oct 12
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Oct 15
|
|||||
►
Sign in to add a comment |
|||||
Comment 1 by dtapu...@chromium.org
, Oct 11 2017Components: -Blink Blink>Forms