Skip to content

bug(tooltip): matTooltip leaks memory #20110

Open
@mikebolt

Description

@mikebolt

This issue has been reported previously, e.g. in #12644

Reproduction

Steps to reproduce:

  1. Visit https://material.angular.io/components/tooltip/overview
  2. Take memory snapshot.
  3. Wiggle cursor over anything with an on-hover tooltip. (approx 100 times)
  4. Take memory snapshot.
  5. Repeat 3 and 4 to see an upward trend in memory usage.

Expected Behavior

Memory usage does not increase indefinitely due to toggling tooltip display.

Actual Behavior

It does.

Environment

  • Angular: 10.0.1
  • CDK/Material: Material
  • Browser(s): Chrome 84.0
  • Operating System (e.g. Windows, macOS, Ubuntu): gLinux

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2The issue is important to a large percentage of users, with a workaroundarea: material/tooltipperfThis issue is related to performance

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions