@tanstack/table-core 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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tanstack/table-core",
3
3
  "author": "Tanner Linsley",
4
- "version": "8.2.2",
4
+ "version": "8.2.3",
5
5
  "description": "Headless UI for building powerful tables & datagrids for TS/JS.",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/tanstack/table#readme",
@@ -108,6 +108,9 @@ export const RowSelection: TableFeature = {
108
108
  // All of the rows are flat already, so it wouldn't be worth it
109
109
  if (value) {
110
110
  preGroupedFlatRows.forEach(row => {
111
+ if (!row.getCanSelect()) {
112
+ return
113
+ }
111
114
  rowSelection[row.id] = true
112
115
  })
113
116
  } else {
@@ -430,7 +433,9 @@ const mutateRowIsSelected = <TData extends RowData>(
430
433
  if (!row.getCanMultiSelect()) {
431
434
  Object.keys(selectedRowIds).forEach(key => delete selectedRowIds[key])
432
435
  }
433
- selectedRowIds[id] = true
436
+ if (row.getCanSelect()) {
437
+ selectedRowIds[id] = true
438
+ }
434
439
  } else {
435
440
  delete selectedRowIds[id]
436
441
  }