composedPath

The composedPath JS Event returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget.

Syntax

event.composedPath()

Examples

1 · dispatch

2 · dispatch · shadow · closed

3 · dispatch · shadow · open

4 · button

5 · button · shadow · closed

6 · button · shadow · open

HomeMenu