[data grid] Fix tree data selection bug
When a row is not selectable within a parent row it was not performing the parent selection propagation correctly (only showing indeterminate state).
This now selects the parent when all selectable rows are selected, reflecting the correct state.
Fixes #20525
https://stackblitz.com/edit/mflmkyvp-1apuxwoo
Deploy preview: https://deploy-preview-20528--material-ui-x.netlify.app/
Bundle size report
| Bundle | Parsed size | Gzip size |
|---|---|---|
| @mui/x-data-grid | 🔺+147B(+0.04%) | 🔺+42B(+0.03%) |
| @mui/x-data-grid-pro | 🔺+147B(+0.03%) | 🔺+47B(+0.03%) |
| @mui/x-data-grid-premium | 🔺+147B(+0.02%) | 🔺+46B(+0.02%) |
| @mui/x-charts | 0B(0.00%) | 0B(0.00%) |
| @mui/x-charts-pro | 0B(0.00%) | 0B(0.00%) |
| @mui/x-charts-premium | 0B(0.00%) | 0B(0.00%) |
| @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%) |
Generated by :no_entry_sign: dangerJS against b2c9d1429a2e7b1282e0e0c0141a8830b4f06799
This pull request has conflicts, please resolve those before we can evaluate the pull request.
Done @cherniavskii ... do you want to check again?