Skip to content

Commit

Permalink
fix:datatable-select-bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
kl-nevermore committed Dec 10, 2024
1 parent adfe904 commit 0330044
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/lib/datatable/TableBody.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,11 +351,10 @@ export const TableBody = React.memo(
};

const selectRangeOnRow = (event, rowRangeStart, rowRangeEnd) => {
const value = props.tableProps.value;
let selection = [];

for (let i = rowRangeStart; i <= rowRangeEnd; i++) {
let rangeRowData = value[i];
let rangeRowData = props.value[i] ?? props.tableProps.value[i];

if (!isSelectable({ data: rangeRowData, index: i })) {
continue;
Expand Down

0 comments on commit 0330044

Please sign in to comment.