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 committed Mar 12, 2024
1 parent 6a88181 commit eab8b4d
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 eab8b4d

Please sign in to comment.