Open
Description
Steps to reproduce
- Enable row grouping and expandable detail panels in DataGridPremium.
- Expand one of the rows to view its detail panel.
- Change the grouping column to group rows by a different field.
- Expand the newly grouped row that contains the previously expanded row.
Current behavior
The row's icon remains as a minus icon (-), indicating that the detail panel is expanded.
However, the content of the detail panel is not visible.
Example: https://stackblitz.com/edit/react-mlbz7tfd
Expected behavior
The row should remain expanded, and the content of the detail panel should be visible inside the grouped row.
Context
This issue breaks the user experience when using both grouping and expandable rows. It causes confusion for end-users as the UI shows an expanded state without displaying the corresponding content.
Your environment
npx @mui/envinfo
System: OS: [Windows 11] Browser: [ Google Chrome ]
Packages: react: 19.0.0 react-dom: 19.0.0 @mui/x-data-grid-premium: 7.25.0 @mui/x-data-grid-generator: 7.25.0 @emotion/react: 11.14.0 @emotion/styled: 11.14.0 @mui/material: 6.4.3 @mui/icons-material: 6.4.3 @types/react: 19.0.8 @types/react-dom: 19.0.3 typescript: 5.7.3
Search keywords: Grouped rows, expanded row icon, DataGridPremium, grouping and detail panel bug
Order ID: 96739
Metadata
Assignees
Labels
Projects
Status
🔖 Ready