Skip to content

Commit 31eb3ab

Browse files
Fix crash on DataTable edit cancel (#8047)
1 parent 25a7b20 commit 31eb3ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

components/lib/datatable/BodyCell.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ export const Cell = (props) => {
328328

329329
const onRowEditCancel = (event) => {
330330
props.onRowEditCancel({ originalEvent: event, data: props.rowData, newData: props.getEditingRowData(), field: props.field, index: props.rowIndex });
331-
props.focusOnInit();
331+
props.focusOnInit(initFocusTimeout, elementRef);
332332
};
333333

334334
React.useEffect(() => {

0 commit comments

Comments
 (0)