shadow DOM events
Last updated
Was this helpful?
Last updated
Was this helpful?
⟩ ⟩ ⟩ ⟩ events
when an that originates in the shadow DOM and begins to propagate in the light DOM, its property is changed to the shadow host element, so it appears to have originated directly on that element.
if a web component needs to know when the light DOM content of a shadow DOM has changed, it can register a listener for “slotchanged” events directly on the element.