@tanstack/react-table 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.
|
@@ -2030,12 +2030,12 @@
|
|
|
2030
2030
|
return isAllRowsSelected;
|
|
2031
2031
|
},
|
|
2032
2032
|
getIsAllPageRowsSelected: () => {
|
|
2033
|
-
const paginationFlatRows = table.getPaginationRowModel().flatRows;
|
|
2033
|
+
const paginationFlatRows = table.getPaginationRowModel().flatRows.filter(row => row.getCanSelect());
|
|
2034
2034
|
const {
|
|
2035
2035
|
rowSelection
|
|
2036
2036
|
} = table.getState();
|
|
2037
2037
|
let isAllPageRowsSelected = !!paginationFlatRows.length;
|
|
2038
|
-
if (isAllPageRowsSelected && paginationFlatRows.some(row =>
|
|
2038
|
+
if (isAllPageRowsSelected && paginationFlatRows.some(row => !rowSelection[row.id])) {
|
|
2039
2039
|
isAllPageRowsSelected = false;
|
|
2040
2040
|
}
|
|
2041
2041
|
return isAllPageRowsSelected;
|
|
@@ -2047,7 +2047,7 @@
|
|
|
2047
2047
|
},
|
|
2048
2048
|
getIsSomePageRowsSelected: () => {
|
|
2049
2049
|
const paginationFlatRows = table.getPaginationRowModel().flatRows;
|
|
2050
|
-
return table.getIsAllPageRowsSelected() ? false : paginationFlatRows.some(d => d.getIsSelected() || d.getIsSomeSelected());
|
|
2050
|
+
return table.getIsAllPageRowsSelected() ? false : paginationFlatRows.filter(row => row.getCanSelect()).some(d => d.getIsSelected() || d.getIsSomeSelected());
|
|
2051
2051
|
},
|
|
2052
2052
|
getToggleAllRowsSelectedHandler: () => {
|
|
2053
2053
|
return e => {
|