@tanstack/table-core 8.5.3 → 8.5.4
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/features/RowSelection.js +2 -2
- package/build/cjs/features/RowSelection.js.map +1 -1
- package/build/esm/index.js +2 -2
- package/build/esm/index.js.map +1 -1
- package/build/stats-html.html +1 -1
- package/build/stats-react.json +310 -310
- package/build/umd/index.development.js +2 -2
- 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 +1 -1
- package/src/features/RowSelection.ts +2 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/table-core",
|
|
3
3
|
"author": "Tanner Linsley",
|
|
4
|
-
"version": "8.5.
|
|
4
|
+
"version": "8.5.4",
|
|
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",
|
|
@@ -267,7 +267,7 @@ export const RowSelection: TableFeature = {
|
|
|
267
267
|
// },
|
|
268
268
|
|
|
269
269
|
getIsAllRowsSelected: () => {
|
|
270
|
-
const preGroupedFlatRows = table.
|
|
270
|
+
const preGroupedFlatRows = table.getFilteredRowModel().flatRows
|
|
271
271
|
const { rowSelection } = table.getState()
|
|
272
272
|
|
|
273
273
|
let isAllRowsSelected = Boolean(
|
|
@@ -309,7 +309,7 @@ export const RowSelection: TableFeature = {
|
|
|
309
309
|
).length
|
|
310
310
|
return (
|
|
311
311
|
totalSelected > 0 &&
|
|
312
|
-
totalSelected < table.
|
|
312
|
+
totalSelected < table.getFilteredRowModel().flatRows.length
|
|
313
313
|
)
|
|
314
314
|
},
|
|
315
315
|
|