Skip to content

Possible memory leak: Charts are adding mousemove EventListeners to unrelated elements on the page #612

@haroflow

Description

@haroflow

Codepen

https://codepen.io/anon/pen/XweoqM

Explanation

  • What is the behavior you expect?
    I would think the charts shouldn't be creating mouse events for elements outside it's parent container. If it needs to, it should unbind them on destroy() or make it so it is not duplicating events on updateSeries().
  • What is happening instead?
    Each call to updateSeries() adds a mousemove eventlistener to a text element outside the chart container. On chrome, inspect the text element and go to Event Listeners -> mousemove, the quantity of events keeps increasing.
    image
  • What error message are you getting?
    None.

If I'm misunderstanding the problem, please feel free to close this issue.
Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions