Question:
Since events dispatched inside a shadowRoot are not visible outside that root, what can be done to make an event pass through the shadow DOM boundary?
Author: John PencolaAnswer:
Set the "composed" property to "true". Note: It's common to pair composed with bubbles so that all nodes in the DOM tree can see the event:
0 / 5 Â (0 ratings)
1 answer(s) in total