primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Tooltip: Uncaught TypeError: Cannot read properties of null (reading 'style')

Open shdb2 opened this issue 1 year ago • 1 comments

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 avatar May 10 '24 09:05 shdb2

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

Alextremeee avatar May 10 '24 14:05 Alextremeee

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

volkorros avatar May 14 '24 19:05 volkorros

I have the same problem

chillapp avatar May 15 '24 09:05 chillapp

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

Ruslancic avatar May 15 '24 13:05 Ruslancic

Hi,

Thanks for reporting the issue, fixed in https://github.com/primefaces/primeng/pull/15558

cetincakiroglu avatar May 16 '24 08:05 cetincakiroglu

confirmed! 17.17.0 working fine

volkorros avatar May 16 '24 13:05 volkorros

Thanks @VolodymyrKornetskyi!

confirmed! 17.17.0 working fine

Amjardim avatar May 23 '24 18:05 Amjardim