Skip to content

Commit

Permalink
Fix #5556: DT Editor Cannot update a component while rendering a diff…
Browse files Browse the repository at this point in the history
…erent component warning (#5748)
  • Loading branch information
melloware authored Jan 11, 2024
1 parent 489091c commit 786636b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/datatable/BodyCell.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export const BodyCell = React.memo((props) => {

if (valid) {
if (submit && onCellEditComplete) {
onCellEditComplete(params);
setTimeout(() => onCellEditComplete(params));
}

closeCell(event);
Expand Down

0 comments on commit 786636b

Please sign in to comment.