react-data-grid
react-data-grid copied to clipboard
Editor is immeditely closed when a row is updated
Describe the bug
When editing a cell, if the rows prop is changed, the editor is closed. This behavior is different than in 5.0.1, where the editor is not closed.
To Reproduce
- a user begins editing a cell, and enters some text
- the
rowsprop is changed - the editor is closed, discarding the user's input
Link to code example: https://codesandbox.io/p/sandbox/rdg7-cellediting-no586c
The setTimeout in the example simulates a slow http request. A user quickly navigating though the grid will often start editing another field before a request can complete.
Expected behavior
The editor should not be closed. See example using 5.0.1, where this works as expected. https://codesandbox.io/s/rdg-cell-editing-forked-pn6ttf
Environment
react-data-gridversion: 7.0.0-beta.28react/react-domversion: 18.2.0