Skip to content
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: Uncaught TypeError: Cannot read properties of null (reading 'style') #15518

Closed
shdb2 opened this issue May 10, 2024 · 7 comments
Closed
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@shdb2
Copy link

shdb2 commented May 10, 2024

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

  1. Visit https://primeng.org/tooltip (and open Chrome dev tools to see the error)
  2. Trigger a tooltip, e.g. by hovering over the Right input
  3. An Uncaught TypeError: Cannot read properties of null (reading 'style') appears

Expected behavior

No uncaught TypeError / no error at all

@shdb2 shdb2 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label May 10, 2024
@Alextremeee
Copy link

Seems to be related to this #15485 which has had a recent fix 3ae8f31

@VolodymyrKornetskyi
Copy link

I have the same issue with primeng 17.16.1. Scroll is blinking on tooltip show/hide.

@chillapp
Copy link

I have the same problem

@Ruslancic
Copy link

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

@cetincakiroglu cetincakiroglu added this to the 17.16.2 milestone May 16, 2024
@cetincakiroglu
Copy link
Contributor

Hi,

Thanks for reporting the issue, fixed in #15558

@cetincakiroglu cetincakiroglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels May 16, 2024
@VolodymyrKornetskyi
Copy link

confirmed! 17.17.0 working fine

@Amjardim
Copy link

Thanks @VolodymyrKornetskyi!

confirmed! 17.17.0 working fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

7 participants