Skip to content

JS event listeners are added and never removed #189

@jose-torres-marin

Description

@jose-torres-marin

Describe the bug
Looking at the performance monitor tab in dev tools, I see the event listeners count increases but never decreases. I would like to know if this might cause a memory issue as users keep browsing the app.

To Reproduce
Steps to reproduce the behavior:

  1. Checkout, install, and run the demo website
  2. Open performance monitor on Chrome dev tools
  3. Use the up and down arrow keys repeatedly to switch focus between the first and second elements
  4. See JS event listeners increasing and never decreasing

Expected behavior
JS event listeners to remain stable if no new elements are added to the DOM

Screenshots
Image

Additional context
This is more a question than a bug. I'm not sure this is actually a problem since the JS heap doesn't seem to increase too much.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions