retargeting

browserweb componentsimplementshadow DOMevents ⟩ retarget

  • Events that happen in shadow DOM have the host element as the target, when caught outside of the component. 👉 see: tab 1️⃣

  • Retargeting doesn't occur if the event occurs on a slotted element, that physically lives in the light DOM. 👉 see: tab 2️⃣

Last updated