New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tooltip: this.container is null on fast mouseover on PrimeNG demo page #15513
Comments
Im facing the same problem in my project |
I am also having this error when fast mouse movement:
|
I am seeing this as well (pretty much same stack trace as above). Confirmed that moving slowly is okay, but a bit faster results in the error. Also, possibly related, my page scrollbar appears for a split second during the showing of the tooltip (goes away as soon as the tooltip is done rendering). As a result, the page re-flows a bit each time which is very jarring if you move the mouse across a bunch of links in succession (e.g. items in a list/table). This happens regardless of movement speed, unfortunately. No issues upon leaving -- tooltip just vanishes as expected. |
I am getting the same issues on the latest version. Fast moving over the tooltip gives the console error, but more annoying now I'm getting a vertical scrollbar on the body for half a second when I hover over an element that display's a tooltip. The vertical scrollbar then disappears. |
Hi, i couldn't produce this bug in version 17.17.0. I guess it's fixed. |
Tried 17.17.0 today and I can also confirm that it does not happen anymore. |
Confirmed on my part that 17.17.0 fixed the issue. |
Also confirmed to be fixed in 17.17.0. Still don't love the magic number of a 100ms timeout under the hood. Anyway I'll close the issue |
Describe the bug
If you mouseover the 4 different inputs with tooltips attached on the current demo page (https://primeng.org/tooltip) the console is filled with "this.container is null" in the preAlign function in tooltip.
My guess is because the mouseover is rapid the appear animation on tooltip doesn't have time to complete, and when it does this.container is already dead from mousing back out
From what I can tell this is a recent regression not present in 17.16.0, likely due to #15485
Environment
Current live demo page with PrimeNG 17.16.1.
Reproducer
No response
Angular version
17?
PrimeNG version
17.16.1
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
20?
Browser(s)
Firefox 125, Chrome 124
Steps to reproduce the behavior
Expected behavior
No error would be good :)
The text was updated successfully, but these errors were encountered: