@xcelsior/ui-spreadsheets 1.0.15 → 1.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3682,8 +3682,9 @@ function Spreadsheet({
3682
3682
  const start = Math.min(currentIndex, lastIndex);
3683
3683
  const end = Math.max(currentIndex, lastIndex);
3684
3684
  const newSelection = new Set(selectedRows);
3685
- for (let i = start; i <= end; i++) {
3686
- newSelection.add(getRowId(filteredData[i]));
3685
+ const rangeRows = filteredData.slice(start, end + 1);
3686
+ for (const row of rangeRows) {
3687
+ newSelection.add(getRowId(row));
3687
3688
  }
3688
3689
  setSelectedRows(newSelection);
3689
3690
  onSelectionChange?.(Array.from(newSelection));