🔸event.currentTarget
browser ⟩ event ⟩ .currentTarget
the element that registered/handled the event, exactly the same as this
. unless:
the handler is an arrow function,
or its
this
is bound to something else,
then we can get the element from event.currentTarget
.
Last updated