Skip to content

matTooltip jumps in conjuction with cdk-virtual-scroll-viewport #15648

Open
@toxik

Description

@toxik

What is the expected behavior?

The tooltip should remain in place when the target is replaced.

What is the current behavior?

The tooltip jumps to the bottom of the page.

What are the steps to reproduce?

There are 2 lists rendered (refreshed at 2 seconds), the bug can be seen in the first one:

  • hover over the first item from the first list; you'll notice the tooltip jumps to the bottom of the page

If you hover over the first item in the second list it behaves correctly.
The second list has templateCacheSize: 0

https://stackblitz.com/edit/virtual-scroll-bug?file=src%2Fapp%2Fapp.component.html

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular 7.2.11 (latest)
Material 7.3.6 (latest)
OS: macOS Mojave 10.14.3

scrollbug

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An 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