[data grid] Bug when initializing selection with row grouping and rowSelectionPropagation
#15382
Labels
bug 🐛
Something doesn't work
component: data grid
This is the name of the generic UI component, not the React module!
feature: Row grouping
Related to the data grid Row grouping feature
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
Link to live example: https://codesandbox.io/p/sandbox/lucid-snow-58c6ld
Steps:
Current behavior
All the children of group "James Cameron" are selected, the group's checkbox is in the intermediate state.
Expected behavior
Having
I would expect the checkbox of group "James Cameron" is selected. The docs says:
https://mui.com/x/react-data-grid/row-grouping/#automatic-parents-and-children-selection
Deselecting and selecting one of the children makes the parent selected as expected.
Maybe there's a race condition during loading the table.
Context
No response
Your environment
npx @mui/envinfo
Search keywords: rowSelectionPropagation datagrid row grouping
Order ID: 101072
The text was updated successfully, but these errors were encountered: