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

[charts] Fix tooltip follow mouse #15189

Merged
merged 3 commits into from
Oct 30, 2024
Merged

Conversation

alexfauquette
Copy link
Member

@alexfauquette alexfauquette commented Oct 30, 2024

I noticed The #15003 introduced a bug. It does not properly update the tootlip position outside of react render.

You can see that on pie chart in the buggy PR preview https://deploy-preview-15003--material-ui-x.netlify.app/x/react-charts/pie/

buggy-pie.mp4

This PR fix it. I don't know why, but using a ref.current in anchorEl does not work, so I copied the behavior of the MUI Tooltip followCursor prop

This PR preview: https://deploy-preview-15189--material-ui-x.netlify.app/x/react-charts/pie/

@alexfauquette alexfauquette added bug 🐛 Something doesn't work component: charts This is the name of the generic UI component, not the React module! labels Oct 30, 2024
@mui-bot
Copy link

mui-bot commented Oct 30, 2024

Deploy preview: https://deploy-preview-15189--material-ui-x.netlify.app/

Generated by 🚫 dangerJS against 481689c

Copy link

codspeed-hq bot commented Oct 30, 2024

CodSpeed Performance Report

Merging #15189 will not alter performance

Comparing alexfauquette:fix-ttoltip (481689c) with master (cc3970b)

Summary

✅ 3 untouched benchmarks

Copy link
Member

@michelengelen michelengelen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alexfauquette alexfauquette merged commit 3386a84 into mui:master Oct 30, 2024
18 of 21 checks passed
@alexfauquette alexfauquette deleted the fix-ttoltip branch October 30, 2024 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: charts This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants