@tanstack/svelte-table 8.2.2 → 8.2.3

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.
@@ -1992,6 +1992,10 @@ const RowSelection = {
1992
1992
 
1993
1993
  if (value) {
1994
1994
  preGroupedFlatRows.forEach(row => {
1995
+ if (!row.getCanSelect()) {
1996
+ return;
1997
+ }
1998
+
1995
1999
  rowSelection[row.id] = true;
1996
2000
  });
1997
2001
  } else {
@@ -2266,7 +2270,9 @@ const mutateRowIsSelected = (selectedRowIds, id, value, table) => {
2266
2270
  Object.keys(selectedRowIds).forEach(key => delete selectedRowIds[key]);
2267
2271
  }
2268
2272
 
2269
- selectedRowIds[id] = true;
2273
+ if (row.getCanSelect()) {
2274
+ selectedRowIds[id] = true;
2275
+ }
2270
2276
  } else {
2271
2277
  delete selectedRowIds[id];
2272
2278
  } // }