Closed henningko closed 4 years ago
While this is interesting behavior, I can actually remove the polyfill and I still get a click event.
It's a dirty secret that click is emitted in about a million places by the browser even if it's not actually a mouse click ;-)
Yikes, my bad—it seemed like disabling all extensions isolated the issue down to that script, but I can now reproduce it without the script, too. Sorry :-|
When navigating through a list of radio buttons using arrow keys (up, down), dialog-polyfill emits a click-event, corrupting downstream event handling.
Steps to reproduce: See https://codepen.io/henning_ko/pen/oNbKNPG
click
event is emitted bydialog-polyfill
Desired behavior: No click should be emitted.
(Noticed this because I had a click event handler on a radio group, and a browser plugin using dialog-polyfill would trigger it).