Skip to content

Tooltip memory leaks #4400

@horvayev

Description

@horvayev

Describe the bug

Hi, I have found a memory leak caused by tooltip directive.

Steps to reproduce the bug

  1. Create buttons with tooltip directive
  2. Delete buttons from DOM
  3. Take snapshot - detached HtmlInputElement and others remain in memory

Bug is probably in

this.visibleInterval = setInterval(() => {

Versions

Libraries:

  • BootstrapVue: 2.0.4
  • Vue: 2.6.10

Demo link

CodeSandbox

mem_prof

I would appreciate if you could take a look, as we heavily use tooltips and popovers in our production app.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions