mui-x
mui-x copied to clipboard
[Data Grid] Prevent clear cell selection on edit mode
closes #20542
Please see the original issue for details
- [x] I have followed (at least) the PR section of the contributing guide.
Deploy preview: https://deploy-preview-20544--material-ui-x.netlify.app/
Bundle size report
| Bundle | Parsed size | Gzip size |
|---|---|---|
| @mui/x-data-grid | 0B(0.00%) | 0B(0.00%) |
| @mui/x-data-grid-pro | 0B(0.00%) | 0B(0.00%) |
| @mui/x-data-grid-premium | 🔺+35B(+0.01%) | 🔺+15B(+0.01%) |
| @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 7477e82d9965f762b2ad2cb06198852279480067
For some reason it does not fix it fully:
- selecting cells by dragging still removes the selection when pressing space bar
- selecting cells by using SHIFT+click it works as expected
https://github.com/user-attachments/assets/c5f37602-797a-484d-9689-15f8c8fbe146
- selecting cells by dragging still removes the selection when pressing space bar
Thanks for reporting. It's so weird that the interactions are different.
For some reason it does not fix it fully:
Fixed. added a new test to confirm.