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