Skip to content

Commit b9bc721

Browse files
committed
chore(*): Apply back track function after merge.
1 parent b2c9e90 commit b9bc721

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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 $index; let i = $index) {
281+
@for (dimLevelColumns of columnDimensionsByLevel; track trackColumnDimensionByLevel(dimLevelColumns); 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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ export class IgxPivotHeaderRowComponent extends IgxGridHeaderRowComponent implem
208208
* @internal
209209
* Use tracking function to fix ngFor not clearing old records from the DOM while updating it, causing incorrect header height during _calculateGridBodyHeight.
210210
*/
211-
public trackColumnDimensionByLevel(_, item: IgxColumnComponent[]) {
211+
public trackColumnDimensionByLevel(item: IgxColumnComponent[]) {
212212
return item.map(col => col.field).join('-');
213213
}
214214

0 commit comments

Comments
 (0)