Skip to content

Conversation

@alexfauquette
Copy link
Member

Fix #20381

The issue come from the fact pointer event were still able to override the value even if controlled.

@alexfauquette alexfauquette added type: bug It doesn't behave as expected. scope: charts Changes related to the charts. labels Nov 19, 2025
@mui-bot
Copy link

mui-bot commented Nov 19, 2025

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

Bundle size report

Bundle Parsed size Gzip size
@mui/x-data-grid 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-pro 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-premium 0B(0.00%) 0B(0.00%)
@mui/x-charts 🔺+42B(+0.01%) 🔺+28B(+0.03%)
@mui/x-charts-pro 🔺+42B(+0.01%) 🔺+22B(+0.02%)
@mui/x-charts-premium 🔺+42B(+0.01%) 🔺+20B(+0.02%)
@mui/x-date-pickers 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers-pro 0B(0.00%) 0B(0.00%)
@mui/x-tree-view 0B(0.00%) 0B(0.00%)
@mui/x-tree-view-pro 0B(0.00%) 0B(0.00%)

Details of bundle changes

Generated by 🚫 dangerJS against db1d790

...prevHighlight,
item: null,
lastUpdate: 'pointer',
isControlled: false,
Copy link
Member

Choose a reason for hiding this comment

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

Why do we change this to false? 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

We don't really modify it. If it was true an early return would be trigger

Copy link
Member Author

Choose a reason for hiding this comment

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

In the version you've seen few minutes ago, there were a ...prevHighlight I've removed but forgot to push


store.set('highlight', { item: null, lastUpdate: 'pointer' });
store.set('highlight', {
...prevHighlight,
Copy link
Member Author

Choose a reason for hiding this comment

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

Suggested change
...prevHighlight,

Copy link
Member

@JCQuintas JCQuintas left a comment

Choose a reason for hiding this comment

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

Should we have a test to prevent regression?

@codspeed-hq
Copy link

codspeed-hq bot commented Nov 21, 2025

CodSpeed Performance Report

Merging #20385 will not alter performance

Comparing alexfauquette:fix-20381 (db1d790) with master (ee98a6b)1

Summary

✅ 13 untouched

Footnotes

  1. No successful run was found on master (6b26ad9) during the generation of this report, so ee98a6b was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@alexfauquette alexfauquette merged commit f5e0bbc into mui:master Nov 21, 2025
22 checks passed
mapache-salvaje pushed a commit to mapache-salvaje/mui-x that referenced this pull request Dec 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: charts Changes related to the charts. type: bug It doesn't behave as expected.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[charts] Allow controlled highlight to persist after mouse-out (optionally)

4 participants