[data grid] Pasting in data grids with 200+ rows using TextField in renderEditCell jumps rows when getRowHeight={() => 'auto'}
#14808
Labels
bug 🐛
Something doesn't work
component: data grid
This is the name of the generic UI component, not the React module!
status: waiting for maintainer
These issues haven't been looked at yet by a maintainer
support: premium standard
Support request from a Premium standard plan user. https://mui.com/legal/technical-support-sla/
Steps to reproduce
Link to live example: https://stackblitz.com/edit/react-yiiuuw?file=Demo.tsx
Steps:
TextField
.TextField
, note the new row numberCurrent behavior
When you edit the
TextField
and exit theTextfield
the row in the viewport jumps to show another row which was not being edited.Expected behavior
When you edit the
TextField
and exit theTextfield
the row in the viewport shows the same row which was being edited.Context
We had a customer report this jumping behavior when pasting. It's only an issue when using a
TextField
inrenderEditCell
in the column definition andgetRowHeight={() => 'auto'}
. Ideally we'd like the row that was being edited in the viewport in view in some capacity.Your environment
npx @mui/envinfo
Search keywords: data grid premium pro textfield renderEditCell TextField rows scroll jump getRowHeight={() => 'auto'}
Order ID: 82849
The text was updated successfully, but these errors were encountered: