[data grid] Custom cell with edit modal which does not close unexpectedly #11018
Labels
component: data grid
This is the name of the generic UI component, not the React module!
status: waiting for author
Issue with insufficient information
support: commercial
Support request from paid users
The problem in depth 🔍
I'm trying to write custom edit cell for specific use case , something like below.
https://mui.com/x/react-data-grid/custom-columns/#date-pickers
https://codesandbox.io/s/w45yyn?file=/src/Demo.tsx
Then problem is , whenever I hit enter key or tab key, grid takes the event as "stop edit mode", and modal closes.
Is there any good way to solve this?
I need custom cell with edit modal, which dose not close by mui x grid default event listener
Your environment 🌎
System:
OS: macOS 12.4
Binaries:
Node: 16.8.0 - ~/.nvm/versions/node/v16.8.0/bin/node
Yarn: 1.22.19 - ~/.nvm/versions/node/v16.8.0/bin/yarn
npm: 7.21.0 - ~/.nvm/versions/node/v16.8.0/bin/npm
Browsers:
Chrome: 119.0.6045.123
Edge: Not Found
Safari: 15.5
npmPackages:
@emotion/react: ^11.7.1 => 11.11.1
@emotion/styled: ^11.10.4 => 11.10.4
@mui/base: 5.0.0-beta.6
@mui/core-downloads-tracker: 5.10.13
@mui/icons-material: ^5.10.9 => 5.10.9
@mui/lab: ^5.0.0-alpha.107 => 5.0.0-alpha.107
@mui/material: ^5.10.13 => 5.10.13
@mui/system: 5.10.16
@mui/x-data-grid: ^6.9.1 => 6.9.1
@mui/x-data-grid-premium: ^6.16.0 => 6.17.0
@mui/x-date-pickers: ^6.9.2 => 6.9.2
@mui/x-license-pro: ^6.10.2 => 6.10.2
@types/react: ^17.0.38 => 17.0.39
react: 17.0.2 => 17.0.2
react-dom: 17.0.2 => 17.0.2
typescript: ^4.5.5 => 4.5.5
Search keywords: datagrid disable event on edit cell
Order ID: 68257
The text was updated successfully, but these errors were encountered: