[data grid] singleSelect cell stays in edit mode after selection #12617
Labels
component: data grid
This is the name of the generic UI component, not the React module!
feature: Editing
Related to the data grid Editing feature
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/
support: question
Community support but can be turned into an improvement
The problem in depth
Hello! 馃憢
I have some questions about why the
singleSelect
cell type does not exit edit mode when the user selects an option:See the gif below (sandbox demo):
Current default behavior (on the left): The cell stays in edit mode after an option is selected so then you have to click out of the cell to get it to leave edit mode.
Desired behavior (on the right): The cell exits edit mode after an option is selected.
It seems like the only way to get the desired behavior is to build the edit cell yourself using
renderEditCell
and callapiRef.current.stopCellEditMode
.I have a couple questions:
renderEditCell
- ex see the status column here)singleSelect
column type? Or is there some other way to achieve this behavior without having to re-build theSelect
inrenderEditCell
?Your environment
Here is a sandbox link: https://stackblitz.com/edit/react-cqqred?file=Demo.tsx
Thank you!
Search keywords: singleSelect, renderEditCell, edit mode
Order ID: 82849
The text was updated successfully, but these errors were encountered: