mui-x icon indicating copy to clipboard operation
mui-x copied to clipboard

[Data Grid] Prevent clear cell selection on edit mode

Open siriwatknp opened this issue 1 month ago • 4 comments

closes #20542

Please see the original issue for details

siriwatknp avatar Dec 03 '25 08:12 siriwatknp

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%)

Details of bundle changes

Generated by :no_entry_sign: dangerJS against 7477e82d9965f762b2ad2cb06198852279480067

mui-bot avatar Dec 03 '25 08:12 mui-bot

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

michelengelen avatar Dec 08 '25 09:12 michelengelen

  • selecting cells by dragging still removes the selection when pressing space bar

Thanks for reporting. It's so weird that the interactions are different.

siriwatknp avatar Dec 09 '25 05:12 siriwatknp

For some reason it does not fix it fully:

Fixed. added a new test to confirm.

siriwatknp avatar Dec 09 '25 05:12 siriwatknp