chartjs / chartjs/Chart.js

Legend event onLeave

Open
#11,494 4 comments 0 reactions 0 assignees View on GitHub
type: bug
Dominant language
JavaScript
Stars
67.7k
Forks
11.9k
Avg merge
7h 39m
Merged PRs (30d)
5

Description

### Expected behavior

When I place the mouse outside the legend I expect the onLeave event to be called all the time.
the same issue as
https://github.com/chartjs/Chart.js/issues/10225

### Current behavior

If you quickly place the mouse outside the chart, content sometimes are highlight anyway due to onLeave isn't called.
https://www.loom.com/share/7b8eb730d7e04028b0b0ed264ec33787?sid=d401a143-291c-48c2-a14b-9148096118d6

### Reproducible sample

https://codesandbox.io/s/friendly-lewin-6yys4j?file=/src/App.js

### Optional extra steps/info to reproduce

_No response_

### Possible solution

_No response_

### Context

_No response_

### chart.js version

4.3.0

### Browser name and version

_No response_

### Link to your project

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.