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

The tooltip is still visible on legend item hover #11801

Open
teodorachiosa opened this issue Jun 7, 2024 · 2 comments
Open

The tooltip is still visible on legend item hover #11801

teodorachiosa opened this issue Jun 7, 2024 · 2 comments

Comments

@teodorachiosa
Copy link

teodorachiosa commented Jun 7, 2024

Expected behavior

The tooltip should be closed if I'm hovering on the legend item.

Current behavior

The tooltip sometimes stays open when I'm hovering the legend item.

image

Reproducible sample

https://codepen.io/teodorachiosa/pen/ZENJEKp

Optional extra steps/info to reproduce

The issue is easy to see on the Chart.js demo application. One very obvious example is this one:

  1. Go to: https://www.chartjs.org/docs/latest/samples/legend/events.html
  2. Hover over the "Red" pie slice
  3. Quickly hover over the legend item labeled "Green"

Current behavior: The "Red" tooltip is still visible.
image

Possible solution

No response

Context

End users might start to confuse the wrong pie slice with the wrong label and value.

chart.js version

4.4.2
Also reproducing on 4.4.3

Browser name and version

Chrome 125.0.6422.147

Link to your project

No response

@sunjh
Copy link

sunjh commented Jul 16, 2024

I'm working on this, please assign this to me.

@sunjh
Copy link

sunjh commented Aug 2, 2024

Pull request opened, please check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants