[data grid] Using rowSelectionPropagation
and rowSelectionModel
at the same time cause a crash
#15619
Labels
bug 🐛
Something doesn't work
component: data grid
This is the name of the generic UI component, not the React module!
feature: Selection
Related to the data grid Selection feature
support: premium standard
Support request from a Premium standard plan user. https://mui.com/legal/technical-support-sla/
Steps to reproduce
Steps:
Current behavior
Initially, while our data is loading, we provide an empty rows array to the Grid. As soon as the data is received and the final rows array is created and provided to the Grid, a crash occurs.
Providing the "isLoading" flag to the Grid does not prevent the issue from happening.
A workaround is to wait a render frame before providing the rowSelectionModel to the grid, after the final rows array has been provided to the Grid.
Expected behavior
The grid should not crash.
Context
We were trying to have both row grouping with row propagation and row model selection to allow the user to select rows and do operations on them with an action menu.
Your environment
npx @mui/envinfo
Search keywords: rowSelectionPropagation rowSelectionModel row grouping
Order ID: 100223
The text was updated successfully, but these errors were encountered: