DEV Community

loading...

Discussion on: removeEventListener not working.

Collapse
leastbad profile image
leastbad

The element, event and callback together work like a signature.

You must remove the handler from the same element that you put it on or else the signature will be different.