Tooltip: Uncaught TypeError: Cannot read properties of null (reading 'style')
Describe the bug
Using pTooltip gives Uncaught TypeError: Cannot read properties of null (reading 'style') which breaks our tests
Environment
Current version of primeng with an Angular app using the Tooltip module
Reproducer
https://stackblitz.com/edit/github-7rgn8e?file=src%2Fapp%2Fapp.component.html
Angular version
17.3.7
PrimeNG version
17.16.1
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
20.11.0
Browser(s)
No response
Steps to reproduce the behavior
- Visit https://primeng.org/tooltip (and open Chrome dev tools to see the error)
- Trigger a tooltip, e.g. by hovering over the Right input
- An Uncaught TypeError: Cannot read properties of null (reading 'style') appears
Expected behavior
No uncaught TypeError / no error at all
Seems to be related to this https://github.com/primefaces/primeng/issues/15485 which has had a recent fix https://github.com/primefaces/primeng/commit/3ae8f318e4d73f9dc64e1e0c70d26fe453bfcc46
I have the same issue with primeng 17.16.1. Scroll is blinking on tooltip show/hide.
I have the same problem
Same here!
Angular CLI: 17.3.7
Node: 18.18.2
Package Manager: npm 10.5.0
OS: win32 x64
Angular: 17.3.8
Package Version
---------------------------------------------------------
primeng 17.16.1
Hi,
Thanks for reporting the issue, fixed in https://github.com/primefaces/primeng/pull/15558
confirmed! 17.17.0 working fine
Thanks @VolodymyrKornetskyi!
confirmed! 17.17.0 working fine