Skip to content

Commit

Permalink
Fix #3155: Reset of vertical scroll position on multiselect
Browse files Browse the repository at this point in the history
  • Loading branch information
sja-cslab authored and melloware committed Mar 12, 2024
1 parent a52855b commit e0a4f32
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions components/lib/datatable/TableBody.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -322,8 +320,6 @@ export const TableBody = React.memo(

anchorRowIndex.current = rangeRowIndex.current;
anchorCellIndex.current = event.cellIndex;

focusOnElement(event.originalEvent, false);
};

const selectRange = (event) => {
Expand Down

0 comments on commit e0a4f32

Please sign in to comment.