Skip to content

bug(MatTooltip): MatTooltip not work well with cdk-virtual-scroll-viewport #19365

Closed
@trungphan

Description

@trungphan

Reproduction

Use StackBlitz to reproduce your issue: https://stackblitz.com/fork/components-issue

Steps to reproduce:

  1. Run this StackBlitz: https://stackblitz.com/edit/angular-1f53g9
  2. Click remove button for each row and the tooltips do not disappear.

Expected Behavior

What behavior were you expecting to see?
The tooltip needs to disappear when the row is removed

Actual Behavior

What behavior did you actually see?
The tooltip stay when a row is removed. This is likely similar to this issue: #6634 because the Angular CDK Virtual Scroller simply detach a view instead of removing it to reuse this view for other rows.

Environment

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

Metadata

Metadata

Assignees

Labels

GThis is is related to a Google internal issueP3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: cdk/scrollingarea: material/tooltip

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions