Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REPL: Events defined with addEventListener() are not undefined after quick update, thus making them duplicate #341

Closed
thonkinator opened this issue May 14, 2022 · 2 comments
Labels

Comments

@thonkinator
Copy link

To reproduce this, create an event listener with addEventListener() (any event, like a keypress) and make it console.log the number 1. This works fine. However, change the 1 to a 2, causing a reload, and now 1 and 2 will be logged when the event is fired. This means that the events are not being undefined, which could cause unwanted bugs in the REPL.

@bluwy
Copy link
Member

bluwy commented May 15, 2022

Similar #146

@bluwy bluwy added the REPL label May 15, 2022
@benmccann
Copy link
Member

closing since the site has been rewritten. please file at https://github.com/sveltejs/svelte.dev/issues/new if the issue persists

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants