Use event.target instead of event.currentTarget
https://developer.mozilla.org/en-US/docs/Web/API/Event/currentTarget https://developer.mozilla.org/en-US/docs/Web/API/Event/target event.target is a reference to the object that dispatched the event. It is different from event.currentTarget when the event handler is called during the bubbling or capturing phase of the event.
Showing
Please register or sign in to comment