From 4969c44a9945bb6b823a86143e9cbcec85c21230 Mon Sep 17 00:00:00 2001 From: melloware Date: Thu, 11 Jan 2024 09:18:11 -0500 Subject: [PATCH] Fix #5556: DT Editor Cannot update a component while rendering a different component warning --- components/lib/datatable/BodyCell.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/datatable/BodyCell.js b/components/lib/datatable/BodyCell.js index 47be72ff03..196027c7cb 100644 --- a/components/lib/datatable/BodyCell.js +++ b/components/lib/datatable/BodyCell.js @@ -178,7 +178,7 @@ export const BodyCell = React.memo((props) => { if (valid) { if (submit && onCellEditComplete) { - onCellEditComplete(params); + setTimeout(() => onCellEditComplete(params)); } closeCell(event);