Events that Cross Shadow DOM Boundary
Web Components โฉ Shadow DOM โฉ Events โฉ
JS.info โฉ Custom events in shadow DOM
Google โฉ The Shadow DOM event model
The events that do cross the shadow boundary are:
category
events
focus
blur, focus, focusin, focusout
mouse
click, dblclick, mousedown, mouseenter, mousemove, ...
wheel
wheel
input
beforeinput, input
keyboard
keydown, keyup
composition
compositionstart, compositionupdate, compositionend
drag
dragstart, drag, dragend, drop, ...
Built-in Events
Custom Events
If composed: false (default), consumers won't be able to listen for the event outside of your shadow root.
Last updated
Was this helpful?