Skip to content

Does not add or remove event listeners for elements when the component is updated #3656

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

Closed
vaheqelyan opened this issue Oct 3, 2019 · 1 comment

Comments

@vaheqelyan
Copy link

Describe the bug
Does not add or remove event listeners when updating a component

To Reproduce
repl

Expected behavior
I attach event listeners as a condition. if true, the event listener should listen, if false it should be removed

Information about your Svelte project:

  • Your browser and the version: Firefox Quantum 69.0 (64-bit)

  • Your operating system: Manjaro - 1.0

  • Svelte version 3.12.1

Severity
need to fix vaheqelyan/svelte-grid#10

Additional context
It works correctly the first time, I guess when the component is mounted but when it is updated it stops working properly

@Conduitry
Copy link
Member

This looks like a duplicate of #3040.

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

No branches or pull requests

2 participants