@tanstack/table-core 8.8.1 → 8.8.2

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.
@@ -2000,12 +2000,12 @@
2000
2000
  return isAllRowsSelected;
2001
2001
  },
2002
2002
  getIsAllPageRowsSelected: () => {
2003
- const paginationFlatRows = table.getPaginationRowModel().flatRows;
2003
+ const paginationFlatRows = table.getPaginationRowModel().flatRows.filter(row => row.getCanSelect());
2004
2004
  const {
2005
2005
  rowSelection
2006
2006
  } = table.getState();
2007
2007
  let isAllPageRowsSelected = !!paginationFlatRows.length;
2008
- if (isAllPageRowsSelected && paginationFlatRows.some(row => row.getCanSelect() && !rowSelection[row.id])) {
2008
+ if (isAllPageRowsSelected && paginationFlatRows.some(row => !rowSelection[row.id])) {
2009
2009
  isAllPageRowsSelected = false;
2010
2010
  }
2011
2011
  return isAllPageRowsSelected;
@@ -2017,7 +2017,7 @@
2017
2017
  },
2018
2018
  getIsSomePageRowsSelected: () => {
2019
2019
  const paginationFlatRows = table.getPaginationRowModel().flatRows;
2020
- return table.getIsAllPageRowsSelected() ? false : paginationFlatRows.some(d => d.getIsSelected() || d.getIsSomeSelected());
2020
+ return table.getIsAllPageRowsSelected() ? false : paginationFlatRows.filter(row => row.getCanSelect()).some(d => d.getIsSelected() || d.getIsSomeSelected());
2021
2021
  },
2022
2022
  getToggleAllRowsSelectedHandler: () => {
2023
2023
  return e => {