@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.
- package/build/cjs/table-core/build/esm/index.js +7 -1
- package/build/cjs/table-core/build/esm/index.js.map +1 -1
- package/build/esm/index.js +7 -1
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +17 -17
- package/build/umd/index.development.js +7 -1
- package/build/umd/index.development.js.map +1 -1
- package/build/umd/index.production.js +1 -1
- package/build/umd/index.production.js.map +1 -1
- package/package.json +2 -2
package/build/esm/index.js
CHANGED
|
@@ -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
|
-
|
|
2272
|
+
if (row.getCanSelect()) {
|
|
2273
|
+
selectedRowIds[id] = true;
|
|
2274
|
+
}
|
|
2269
2275
|
} else {
|
|
2270
2276
|
delete selectedRowIds[id];
|
|
2271
2277
|
} // }
|