From e0a4f329490bdba3527523db9bae4d00821a8eeb Mon Sep 17 00:00:00 2001 From: Sven Jansen Date: Tue, 12 Mar 2024 09:09:15 +0100 Subject: [PATCH] Fix #3155: Reset of vertical scroll position on multiselect --- components/lib/datatable/TableBody.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/components/lib/datatable/TableBody.js b/components/lib/datatable/TableBody.js index be92dd5a15..a39839932a 100644 --- a/components/lib/datatable/TableBody.js +++ b/components/lib/datatable/TableBody.js @@ -296,8 +296,6 @@ export const TableBody = React.memo( onSelect({ originalEvent, data, type }); } - focusOnElement(originalEvent, true); - if (props.onSelectionChange && selection !== props.selection) { props.onSelectionChange({ originalEvent, @@ -322,8 +320,6 @@ export const TableBody = React.memo( anchorRowIndex.current = rangeRowIndex.current; anchorCellIndex.current = event.cellIndex; - - focusOnElement(event.originalEvent, false); }; const selectRange = (event) => {