Skip to content

Commit c0d79f6

Browse files
committed
chore(*): Remove back track function due to duplicate keys.
1 parent b9bc721 commit c0d79f6

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

projects/igniteui-angular/src/lib/grids/pivot-grid/pivot-header-row.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@
278278
}
279279
}
280280
<div class="igx-grid-thead--virtualizationWrapper" [style.max-height.px]="maxContainerHeight" (click)="grid.navigation.focusOutRowHeader($event)">
281-
@for (dimLevelColumns of columnDimensionsByLevel; track trackColumnDimensionByLevel(dimLevelColumns); let i = $index) {
281+
@for (dimLevelColumns of columnDimensionsByLevel; track $index; let i = $index) {
282282
<div class="igx-grid-thead__group igx-grid-thead--virtualizationContainer" [style.height.px]="totalDepth > 1 ? grid.rowHeight : undefined" [style.width.px]="grid.unpinnedWidth">
283283
<ng-template igxGridFor #headerVirtualContainer let-column
284284
[igxGridForOf]="dimLevelColumns" [igxGridForOfUniqueSizeCache]="true" [igxForScrollContainer]="grid.parentVirtDir"

projects/igniteui-angular/src/lib/grids/pivot-grid/pivot-header-row.component.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -203,15 +203,6 @@ export class IgxPivotHeaderRowComponent extends IgxGridHeaderRowComponent implem
203203
return this.totalDepth * this.grid.renderedRowHeight;
204204
}
205205

206-
/**
207-
* @hidden
208-
* @internal
209-
* Use tracking function to fix ngFor not clearing old records from the DOM while updating it, causing incorrect header height during _calculateGridBodyHeight.
210-
*/
211-
public trackColumnDimensionByLevel(item: IgxColumnComponent[]) {
212-
return item.map(col => col.field).join('-');
213-
}
214-
215206
/**
216207
* @hidden
217208
* @internal

0 commit comments

Comments
 (0)