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