question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Angular Material Tooltip stop working after virtual scrolling

See original GitHub issue

I’m submitting a … (check one with “x”)

[ x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, post on Stackoverflow or Gitter

Current behavior When one of the datatable cells contains an Angular Material2 Tooltip component, it will stop working after the user scrolls (the datatable is configured with vertical virtual scrolling). When this happens, you can see a blank tooltip shows at the top left corner of the page.

Expected behavior Material Tooltip should always work regardless the user scrolls or not

Reproduction of the problem

  1. Browse https://stackblitz.com/edit/angular-mq8vbn
  2. move the cursor over the 1st column cell values, you should see ‘Hello World’ tooltips
  3. now scroll down several rows
  4. move the cursor over the 1st column cell values, this time the tooltip won’t work.

(I suspect it might be a zone issues)

What is the motivation / use case for changing the behavior? It breaks the tooltip

Please tell us about your environment: N/A

  • Table version: latest

  • Angular version: 5.0.0

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

  • Language: [all | TypeScript X.X | ES6/7 | ES5]

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:8
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
yozo1984commented, Apr 16, 2018

+1 We are also seeing this error happening when using the datatable. I manually removed the runOutsideAngular wrap which fixed our problem.

2reactions
marklbarlowcommented, Apr 14, 2018

This seems to be the root cause for about a dozen zone / change detection-related problems in the issues list. Really surprising that this hasn’t been fixed - the problem has been there since before Christmas and I’ve had to keep using v11.0.4 since then as a result.

Is this project still actively maintained and will it ever be fixed? I hope the answer is “yes” to both as it’s a really useful datatable, but the way things are going it might be time to switch to something else…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tooltip Cdk Virtual Scroll Issue - StackBlitz
<h1>When an item that has a mat-tooltip. applied is removed from a. cdk-virtual-scroll-viewport, the tooltip will. not disappear</h1>.
Read more >
javascript - Angular material tooltip problem with ...
In case it starts lagging after rendering thousands of rows then you can use Angular Scrolling CDK (it's like a virtual/infinite scrolling ......
Read more >
Scrolling: DevExtreme - JavaScript UI Components for ...
Scrolling enables a user to browse data that lies outside the UI component's viewport. The following scrolling modes are available in the TreeList:...
Read more >
Nebular meets Angular CDK
Nebular is an Angular library that simplifies complex rich UI applications development. It consists of the following modules: Theme…
Read more >
React Tooltip component - Material UI - MUI
Tooltips display informative text when users hover over, focus on, or tap an element. ... (A ref to the class component itself will...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found