TypeError: Click listener in primeng StyleClass throws a null object error #14963
Labels
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Describe the bug
This happens sometimes when the click listener is triggered and the target is not in the dom anymore, I'm unable to reproduce this issue in a controlled environment as it only happens on complex interfaces with many mutations.
Nevertheless the error seems easy to fix as it is checking
if (this.target.offsetParent === null)
and it could be controlled if the target is not existant anymore to avoid triggering these kinds of issues.Environment
This is an angular application on PrimeNG version 17.8.0 but it has been happening since PrimeNG 16.
Reproducer
No response
Angular version
17.2.*
PrimeNG version
17..
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
20.8.1
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: