Skip to content

Commit

Permalink
fix: getCanSomeRowsExpand to check pre-pagination (#4791)
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinVandy committed Apr 1, 2023
1 parent 134414e commit 1b58439
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/table-core/src/features/Expanding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ export const Expanding: TableFeature = {
)
},
getCanSomeRowsExpand: () => {
return table.getRowModel().flatRows.some(row => row.getCanExpand())
return table
.getPrePaginationRowModel()
.flatRows.some(row => row.getCanExpand())
},
getToggleAllRowsExpandedHandler: () => {
return (e: unknown) => {
Expand Down

0 comments on commit 1b58439

Please sign in to comment.