Closed luisherranz closed 3 years ago
Good point, I think this applies to every event. Could you add {bubbles: true}
to all of them?
What events, KeyboardEvent
and CompositionEvent
?
All 5 of them
Note to self: Wait for Firefox to accept the current version before merging this and releasing a new version.
I don't think that KeyboardEvent
and CompositionEvent
can bubble.
The KeyboardEventInit dictionary also accepts fields from the UIEventInit and EventInit dictionaries.
Note: The CompositionEventInit dictionary inherits from the UIEventInit dictionary, so can also accept members defined on there.
The UIEventInit dictionary also accepts fields from the EventInit dictionary.
eventInit Optional This is an EventInit dictionary, having the following optional fields:
bubbles Optional A Boolean indicating whether the event bubbles. The default is false.
Done 👍
Thank you Luis!
No problem! 🙂👍
There are some client-side JavaScript frameworks like React or Ember that without the
bubbles: true
option in the input event don't trigger its ownonChange
events when the input changes.Two examples are of websites that don't work without this option are the email editor of frontapp.com and the post editor of all the Discourse forums. I'm sure there will be many more 🙂