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

Incorrect hover for barchart #7764

Closed
mzduke opened this issue Sep 6, 2020 · 1 comment
Closed

Incorrect hover for barchart #7764

mzduke opened this issue Sep 6, 2020 · 1 comment

Comments

@mzduke
Copy link

mzduke commented Sep 6, 2020

Expected Behavior

When I hover over a bar, the appropriate bar has a triggered hover state.

Current Behavior

In specific circumstances, an incorrect bar highlighted as a hovered.
barchart-hover-bug

Codepen

Steps to Reproduce

  1. Hover on the first bar for a second
  2. Without delay hover over the second bar and also without delay on the third (you can hover back and forth between bars 2 and 3).
  3. If you will do a delay over the second bar, the issue won't happen. Also in you don't do a delay over the first bar the issue won't happen.

Context

The issue started to appear in 2.9.0 (also relevant for 2.9.3) but everything was working fine in 2.8.0.
Quick research showed that issue introduced by this PR: #6527 (example in this PR contains the mentioned issue).

Environment

  • Chart.js version: 2.9.x
@kurkle
Copy link
Member

kurkle commented Sep 6, 2020

Does not happen in v3: https://codepen.io/kurkle/pen/NWNXwYo
Closing as fixed.

@kurkle kurkle closed this as completed Sep 6, 2020
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