From 786636be49823ff4a1a3f5faeed08be0db593b67 Mon Sep 17 00:00:00 2001 From: Melloware Date: Thu, 11 Jan 2024 09:19:54 -0500 Subject: [PATCH] Fix #5556: DT Editor Cannot update a component while rendering a different component warning (#5748) --- 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);