diff --git a/packages/table-core/src/features/Expanding.ts b/packages/table-core/src/features/Expanding.ts index ed4fa8178c..b53538856a 100644 --- a/packages/table-core/src/features/Expanding.ts +++ b/packages/table-core/src/features/Expanding.ts @@ -128,7 +128,7 @@ export const Expanding: TableFeature = { } // If any row is not expanded, return false - if (table.getRowModel().flatRows.some(row => row.getIsExpanded())) { + if (table.getRowModel().flatRows.some(row => !row.getIsExpanded())) { return false }