๐ธ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
Was this helpful?