From c4411421db9a24083a77be216bb1eeb822a616d6 Mon Sep 17 00:00:00 2001 From: Ondrej Skotnica Date: Thu, 1 Feb 2024 10:42:46 +0100 Subject: [PATCH] Table | Expandable rows broken with paginator #13783 --- src/app/components/table/table.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/table/table.ts b/src/app/components/table/table.ts index 04c2e982142..9e186a1c4c0 100644 --- a/src/app/components/table/table.ts +++ b/src/app/components/table/table.ts @@ -3183,7 +3183,7 @@ export class TableBody implements AfterViewInit, OnDestroy { shouldRenderRowGroupFooter(value: any, rowData: any, i: number) { let currentRowFieldData = ObjectUtils.resolveFieldData(rowData, this.dt.groupRowsBy); - let nextRowData = value[i - (1 + this.dt._first)]; + let nextRowData = value[i + (1 + this.dt._first)]; if (nextRowData) { let nextRowFieldData = ObjectUtils.resolveFieldData(nextRowData, this.dt.groupRowsBy); return currentRowFieldData !== nextRowFieldData;