[data grid] Change clipboard copy behaviour/precedence? #12913
Labels
component: data grid
This is the name of the generic UI component, not the React module!
enhancement
This is not a bug, nor a new feature
feature: Clipboard
Related to clipboard copy or paste functionalities
support: commercial
Support request from paid users
support: premium standard
Support request from a Premium standard plan user. https://mui.com/legal/technical-support-sla/
The problem in depth
We have a table with a checkbox selection with the selection of the row on click disabled. (basically https://mui.com/x/react-data-grid/row-selection/#disable-row-selection-on-click)
Let's assume a user has selected a couple of rows.
Then, a user selects a cell and wants to copy it.
The current behavior
it always copies the selected rows (with the checkboxes), but not the selected cell.
Question
Is there a possibility to prevent that behavior and copy selected cell content instead of the content of selected rows?
Your environment
`npx @mui/envinfo`
Search keywords: onClipboardCopy, Clipboard Copy and Row Selection
Order ID: 82474
The text was updated successfully, but these errors were encountered: