@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.
@@ -2150,7 +2150,7 @@
2150
2150
  // return table.options.enableGroupingRowSelection ?? false
2151
2151
  // },
2152
2152
  getIsAllRowsSelected: () => {
2153
- const preGroupedFlatRows = table.getPreGroupedRowModel().flatRows;
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.getCoreRowModel().flatRows.length;
2184
+ return totalSelected > 0 && totalSelected < table.getFilteredRowModel().flatRows.length;
2185
2185
  },
2186
2186
  getIsSomePageRowsSelected: () => {
2187
2187
  const paginationFlatRows = table.getPaginationRowModel().flatRows;