currentTarget property

dynamic currentTarget

Identifies the current target for the event, as the Event traverses the DOM.

It always refers to the Element the Event handler has been attached to as opposed to target which identifies the Element on which the Event occurred.

See: developer.mozilla.org/en-US/docs/Web/API/Event/currentTarget

Implementation

external get currentTarget;