From 34959f029f68f258a666e93941cfcdff8054b1ff Mon Sep 17 00:00:00 2001 From: Mahajan Date: Wed, 11 Nov 2020 08:04:43 -0600 Subject: [PATCH] Commit changes before exiting grid --- src/DataGrid.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/DataGrid.tsx b/src/DataGrid.tsx index 7217c33963..abf392ca46 100644 --- a/src/DataGrid.tsx +++ b/src/DataGrid.tsx @@ -730,6 +730,7 @@ function DataGrid({ if (key === 'Tab') { // If we are in a position to leave the grid, stop editing but stay in that cell if (canExitGrid({ shiftKey, cellNavigationMode, columns, rowsCount: rows.length, selectedPosition })) { + commitEditorChanges(); // Allow focus to leave the grid so the next control in the tab order can be focused return; }