Skip to content

Commit

Permalink
Table | Expandable rows broken with paginator primefaces#13783
Browse files Browse the repository at this point in the history
  • Loading branch information
Ondrej Skotnica committed Jan 30, 2024
1 parent 24fab48 commit 8f41098
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/components/table/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3168,7 +3168,7 @@ export class TableBody implements AfterViewInit, OnDestroy {

shouldRenderRowGroupHeader(value: any, rowData: any, i: number) {
let currentRowFieldData = ObjectUtils.resolveFieldData(rowData, this.dt.groupRowsBy);
let prevRowData = value[i - 1];
let prevRowData = value[i - (1 + this.dt._first)];
if (prevRowData) {
let previousRowFieldData = ObjectUtils.resolveFieldData(prevRowData, this.dt.groupRowsBy);
return currentRowFieldData !== previousRowFieldData;
Expand All @@ -3179,7 +3179,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];
let nextRowData = value[i - (1 + this.dt._first)];
if (nextRowData) {
let nextRowFieldData = ObjectUtils.resolveFieldData(nextRowData, this.dt.groupRowsBy);
return currentRowFieldData !== nextRowFieldData;
Expand Down

0 comments on commit 8f41098

Please sign in to comment.