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: 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

Comments

@rosenthalj
Copy link
Contributor

rosenthalj commented May 21, 2024

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

  1. Run the reproducer: https://stackblitz.com/edit/github-a5n4rp?file=src%2Findex.html,src%2Fapp%2Fapp.module.ts,src%2Fapp%2Fapp.component.ts
  2. Mouse over the "working tooltip" information icon
    A tooltip will be displayed (good)
  3. Mouse over the "broken tooltip" information icon
    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

@rosenthalj rosenthalj 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 21, 2024
@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 30, 2024
@cetincakiroglu cetincakiroglu added this to the 17.18.0 milestone May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment