Tooltip: Tooltip broken when used in a custom component #15648
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
Since PrimeNG 17.17.0 the tooltip has been broken when used with a custom component. An exception is thrown in tooltip.ts alignRight method.
The following video demonstrates the issue:
brokenTooltip.mov
The bug was caused when fixing issue #15390 by change: 7ea8741
Environment
windows and mac
Reproducer
https://stackblitz.com/edit/github-a5n4rp?file=src%2Findex.html,src%2Fapp%2Fapp.module.ts,src%2Fapp%2Fapp.component.ts
Angular version
17.x
PrimeNG version
17.17.0
Build / Runtime
Angular CLI App
Language
TypeScript
Node version (for AoT issues node --version)
20.x
Browser(s)
chrome, firefox, and safari
Steps to reproduce the behavior
A tooltip will be displayed (good)
No tooltip will be displayed and an exception occur in the console (bad)
Expected behavior
tooltip should be displayed when mousing over each of the information icons
The text was updated successfully, but these errors were encountered: