@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.mjs CHANGED
@@ -3641,8 +3641,9 @@ function Spreadsheet({
3641
3641
  const start = Math.min(currentIndex, lastIndex);
3642
3642
  const end = Math.max(currentIndex, lastIndex);
3643
3643
  const newSelection = new Set(selectedRows);
3644
- for (let i = start; i <= end; i++) {
3645
- newSelection.add(getRowId(filteredData[i]));
3644
+ const rangeRows = filteredData.slice(start, end + 1);
3645
+ for (const row of rangeRows) {
3646
+ newSelection.add(getRowId(row));
3646
3647
  }
3647
3648
  setSelectedRows(newSelection);
3648
3649
  onSelectionChange?.(Array.from(newSelection));