Skip to content

Commit ab40919

Browse files
committed
fix(column): account for hidden cols with _unpinnedColumns for indices logic
1 parent 14f8fa3 commit ab40919

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/igniteui-angular/src/lib/grids/columns/column.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2309,7 +2309,7 @@ export class IgxColumnComponent implements AfterContentInit, OnDestroy, ColumnTy
23092309
// estimate the exact index at which column will be inserted
23102310
// takes into account initial unpinned index of the column
23112311
if (!hasIndex) {
2312-
const indices = grid.unpinnedColumns.map(col => col.index);
2312+
const indices = grid._unpinnedColumns.map(col => col.index);
23132313
indices.push(this.index);
23142314
indices.sort((a, b) => a - b);
23152315
index = indices.indexOf(this.index);

0 commit comments

Comments
 (0)