primeng icon indicating copy to clipboard operation
primeng copied to clipboard

p-tooltip is forever stuck on the page when a hide delay is specified and the tooltip target is hovered again while the tooltip is hiding.

Open Giwayume opened this issue 9 years ago • 4 comments

1) Environment

  • PrimeFaces version: 6.1
  • Application server + version: NodeJS 6.10.2
  • Affected browsers: Chrome

2) Expected behavior

The tooltip should not get stuck on the page.

3) Actual behavior

The tooltip is getting stuck when hovering over the tooltip target while the tooltip is hiding.

4) Steps to reproduce

  1. Make a tooltip with a hide delay, a la <span pTooltip="Tooltip Text!" showDelay="200" hideDelay="500"><i class="fa fa-question-circle" aria-hidden="true"></i></span>
  2. Hover over the icon to show the tooltip.
  3. Move your mouse away from the icon so the tooltip starts to hide, then quickly move the mouse back to hover over the icon again.
  4. The tooltip will no longer hide itself, no matter what.

5) Sample HTML

<span pTooltip="Tooltip Text!" showDelay="200" hideDelay="500"><i class="fa fa-question-circle" aria-hidden="true"></i></span>

Giwayume avatar Jul 20 '17 14:07 Giwayume

I had an issue with this as well. I opened a pull request with a simple 4-line fix if you want to take a look.

aervin avatar Aug 01 '17 00:08 aervin

Fixed via PR.

cagataycivici avatar Aug 08 '17 12:08 cagataycivici

problem persists on 4.1.3 when dom is updated and element is disabled, tooltip sticks.

Ninja-Coding-Git avatar Sep 07 '17 15:09 Ninja-Coding-Git

This should not be closed because the bug still exist on 5.0.2. Please re-open and fix.

tleveque23 avatar Dec 21 '17 18:12 tleveque23