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

Limit active element changes to chartArea #9970

Merged
merged 3 commits into from
Dec 8, 2021

Conversation

kurkle
Copy link
Member

@kurkle kurkle commented Dec 8, 2021

Fix: #9842

I extracted the active element determination code for core and tooltip to a helper function for less complexity.

Because there was no public way of properly determining if the event is inside chartArea from the tooltip plugin, I added a inChartArea boolean to the event args. Could be useful for external plugins.

@kurkle kurkle merged commit ba6b446 into chartjs:master Dec 8, 2021
@peteruithoven
Copy link

@kurkle thanks for looking into this!

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

Successfully merging this pull request may close these issues.

Showing external tooltip on legend hover issue
3 participants