@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 +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/Spreadsheet.tsx +4 -2
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
|
-
|
|
3686
|
-
|
|
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));
|