Closed sorvell closed 2 years ago
When an event is re-targeted, its eventPhase should typically be AT_TARGET. ShadyDOM is not currently handling this correctly.
eventPhase
AT_TARGET
eventPhase should be AT_TARGET (2) for elements in the composedPath() that have a shadowRoot that is also in the composedPath.
eventPhase is either BUBBLING_PHASE (3) or CAPTURING_PHASE (1) for these elements.
Description
When an event is re-targeted, its
eventPhase
should typically beAT_TARGET
. ShadyDOM is not currently handling this correctly.Example
Expected behavior
eventPhase
should beAT_TARGET
(2) for elements in the composedPath() that have a shadowRoot that is also in the composedPath.Actual behavior
eventPhase
is either BUBBLING_PHASE (3) or CAPTURING_PHASE (1) for these elements.