HTMLSelectElement's input and change events do not have composed true set
Categories
(Core :: DOM: Forms, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox95 | --- | fixed |
People
(Reporter: emarquez, Assigned: emilio)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.61 Safari/537.36
Steps to reproduce:
live repro here:
https://jsbin.com/zahocodiwo/edit?html,output
I want to add an event listener to a custom element that listens to the input and change events of a <select> inside the shadow root. Steps to repro:
- Place a select with options inside a shadow root of a custom element
- set an input or a change event listener on the custom element
- between values on the custom element
- observe event listeners don't get called
Actual results:
Event listeners on the shadow root host do not get called because the input and change events are both composed: false
Expected results:
Event listeners on the shadow root host should get called and the input and change events both have composed: true
FWIW the <input> element has bubbles & composed both as true for the input
event (not change).
Updated•3 years ago
|
Updated•3 years ago
|
Assignee | ||
Comment 2•3 years ago
|
||
This matches other browsers and input elements.
Updated•3 years ago
|
Assignee | ||
Comment 3•3 years ago
|
||
Change events are not composed for inputs, nor in other browsers, and I think that's probably fine?
Comment 4•3 years ago
|
||
Yeah, this was in fact discussed and I forgot about it: https://github.com/whatwg/html/issues/5453#issuecomment-885222243. Thanks for pointing that out!
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a9f7ec48cde9 Select input event should be composed. r=edgar,annevk
Comment 6•3 years ago
|
||
bugherder |
Description
•