primeng icon indicating copy to clipboard operation
primeng copied to clipboard

InputNumber: Tooltip with tooltipEvent='focus' is never displayed

Open Kbdq opened this issue 2 years ago • 2 comments

Describe the bug

Looks like bug is caused by fix for issue https://github.com/primefaces/primeng/issues/16106

When adding a tooltip to a InputNumber component and setting tooltipEvent to focus, the tooltip never shows.

It is broken in PrimeNG 17.18.11 and 17.18.10. It works as expected in PrimeNG 17.18.9

Please note, the following combinations have no issue:

Normal and tooltipEvent='focus' works fine InputNumber and tooltipEvent='hover' works fine

So the issue seems to be specific to the combination of InputNumber and tooltipEvent=focus.

Environment

Angular: 18.2.7 PrimeNG: 17.18.11 or 17.18.10

Reproducer

https://stackblitz.com/edit/github-dwfwaf?file=src%2Fapp%2Fapp.component.html

Angular version

18.2.7

PrimeNG version

17.18.11

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

20.16.0

Browser(s)

No response

Steps to reproduce the behavior

Open the page with a InputNumber element, configured with a tooltip with tooltipEvent='focus'. Focus on the InputNumber element.

Expected behavior

Expected result: tooltip is displayed.

Actual result: no tooltip is displayed.

Kbdq avatar Oct 08 '24 14:10 Kbdq

Due to PrimeNG team's busy roadmap, this issue is available for anyone to work on. Make sure to reference this issue in your pull request. :sparkles: Thank you for your contribution! :sparkles:

github-actions[bot] avatar Nov 19 '24 11:11 github-actions[bot]

Hi,

This issue is fixed for PrimeNG v22.1.6

cetincakiroglu avatar Nov 23 '26 08:11 cetincakiroglu