SEARCH
You are in browse mode. You must login to use MEMORY

   Log in to start


From course:

Lit / Web Components

» Start this Course
(Practice similar questions for free)
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 Pencola



Answer:

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