retargeting
Last updated
Was this helpful?
Last updated
Was this helpful?
⟩ ⟩ ⟩ ⟩ ⟩ 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️⃣
💾 (live demo below on )
按在黃色背景的 "John Smith" 上時 (⭐️ 這是一個 ),結果是: