DEV Community

Discussion on: Scanning user input and looking for keywords

Collapse
 
devdrake0 profile image
Si

I'm probably going to have to clone your repo down to try and help you debug this properly, so you'll have to bare with me 🙂

Thread Thread
 
devdrake0 profile image
Si

So I'm pretty sure your issue is that your registering event handlers, but you're never de-registering them.

On the first page:

getEventListeners(document)
{keyup: Array(1)}

When I move onto the next section:

getEventListeners(document)
{keyup: Array(2)}

etc etc.

I believe this is why you're having problems.