@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
|
@@ -2150,7 +2150,7 @@
|
|
|
2150
2150
|
// return table.options.enableGroupingRowSelection ?? false
|
|
2151
2151
|
// },
|
|
2152
2152
|
getIsAllRowsSelected: () => {
|
|
2153
|
-
const preGroupedFlatRows = table.
|
|
2153
|
+
const preGroupedFlatRows = table.getFilteredRowModel().flatRows;
|
|
2154
2154
|
const {
|
|
2155
2155
|
rowSelection
|
|
2156
2156
|
} = table.getState();
|
|
@@ -2181,7 +2181,7 @@
|
|
|
2181
2181
|
var _table$getState$rowSe;
|
|
2182
2182
|
|
|
2183
2183
|
const totalSelected = Object.keys((_table$getState$rowSe = table.getState().rowSelection) != null ? _table$getState$rowSe : {}).length;
|
|
2184
|
-
return totalSelected > 0 && totalSelected < table.
|
|
2184
|
+
return totalSelected > 0 && totalSelected < table.getFilteredRowModel().flatRows.length;
|
|
2185
2185
|
},
|
|
2186
2186
|
getIsSomePageRowsSelected: () => {
|
|
2187
2187
|
const paginationFlatRows = table.getPaginationRowModel().flatRows;
|