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: Stuck after hovering when used in complex page #3965

Closed
inad9300 opened this issue Jan 17, 2023 · 6 comments · Fixed by #5319
Closed

Tooltip: Stuck after hovering when used in complex page #3965

inad9300 opened this issue Jan 17, 2023 · 6 comments · Fixed by #5319
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@inad9300
Copy link
Contributor

inad9300 commented Jan 17, 2023

Describe the bug

When in a complex page (one that makes the CPU start to struggle a little), tooltips sometimes miss the event that hides them after hovering them, therefore remaining on screen when they should not.

Reproducer

https://codesandbox.io/s/primereact-test-forked-eijgs6?file=/src/index.js

PrimeReact version

8.7.3

React version

18.x

Language

ALL

Build / Runtime

Create React App (CRA)

Browser(s)

No response

Steps to reproduce the behavior

  1. Move the mouse from "one" to "ten", and back to "one" again in a straight line
  2. Observe how some tooltips stay visible
  3. If it doesn't happen, repeat step 1. It may be tricky to catch this consistently, so, alternatively, one can try moving the mouse slower or faster over the list, following patterns other than a straight line, or cranking up the number of elements in the list below (whose only purpose is to slow things down) to a number challenging for your machine. The goal is to get to a point like this:
    image

Expected behavior

No response

@inad9300 inad9300 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jan 17, 2023
@melloware
Copy link
Member

Nice reproducer i was able to get it to happen too.

@melloware melloware added Type: Bug Issue contains a defect related to a specific component. and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Jan 17, 2023
@inad9300
Copy link
Contributor Author

Any luck with this issue?

In addition to what I reported, I have experienced several times what may or may not be the same problem: tooltips getting stuck in a not-so-complex scenario, hiding UI elements while refusing to go away. My hope is that tackling this issue fixes both problems.

@melloware
Copy link
Member

No luck on my end...definitely seems like some kind of timing issue.

@inad9300
Copy link
Contributor Author

@melloware I believe it feels more difficult to reproduce the problem now, but it nevertheless still occurs in 10.5.1 using the same steps described above:

Reproducer.

image

@melloware
Copy link
Member

@inad9300 do you mind opening a new ticket with your reproducer?

@inad9300
Copy link
Contributor Author

There you go: #6008 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants