composed option
An event option that lets an event cross from inside a shadow DOM out into the regular document.
In more detail
Built-in user interface events such as click are composed by default; custom events are not. Without composed: true, an event dispatched inside a component's shadow root stops at the shadow boundary.
Related terms
- shadow DOM — A browser feature that gives a web component its own hidden DOM tree whose styles do not leak in or out.
- CustomEvent — A browser event type you create and name yourself, which carries any data you like in its detail property.
Taught in
- CustomEvent Dispatching And Decoupled Component Event Buses — Frontend Architecture & Web Platform