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

[DataGridPro] Do not render detail panel if the focused cell is not visible #13456

Merged

Conversation

cherniavskii
Copy link
Member

@cherniavskii cherniavskii commented Jun 11, 2024

Fixes #13073

Context

We render the focused cell even if it's out of the viewport (see #7357).
Because of this, the detail panel of the row containing the focused cell is also rendered.

This did not cause issues in v6 because detail panels had an absolute position.
In v7, detail panels are rendered in the normal flow, causing this issue.

TODO

  • Add a test

@cherniavskii cherniavskii added component: data grid This is the name of the generic UI component, not the React module! plan: Pro Impact at least one Pro user regression A bug, but worse feature: Master-detail Related to the data grid Master-detail feature labels Jun 11, 2024
@mui-bot
Copy link

mui-bot commented Jun 11, 2024

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

Generated by 🚫 dangerJS against c2243d2

@cherniavskii cherniavskii marked this pull request as ready for review June 12, 2024 09:16
@cherniavskii cherniavskii merged commit 804f882 into mui:master Jun 12, 2024
17 checks passed
DungTiger pushed a commit to DungTiger/mui-x that referenced this pull request Jul 23, 2024
thomasmoon pushed a commit to thomasmoon/mui-x that referenced this pull request Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: data grid This is the name of the generic UI component, not the React module! feature: Master-detail Related to the data grid Master-detail feature plan: Pro Impact at least one Pro user regression A bug, but worse
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[data grid] Detail panel for focused row is "sticky" when scrolling
3 participants