Skip to content

Commit 6da856f

Browse files
committed
fix(grid): Fix columns reordering logic when MCH
1 parent 05a68b8 commit 6da856f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

projects/igniteui-angular/src/lib/grids/grid-base.directive.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3856,7 +3856,7 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements
38563856

38573857
this.endEdit(true);
38583858
if (column.level) {
3859-
this._moveChildColumns(column.parent, column, target, pos);
3859+
this._moveChildColumns(column.parent, column, target, position);
38603860
}
38613861

38623862
if (target.pinned && !column.pinned) {
@@ -3876,14 +3876,14 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements
38763876
}
38773877

38783878
if (target.pinned && column.pinned) {
3879-
this._reorderColumns(column, target, pos, this._pinnedColumns);
3879+
this._reorderColumns(column, target, position, this._pinnedColumns);
38803880
}
38813881

38823882
if (!target.pinned && !column.pinned) {
3883-
this._reorderColumns(column, target, pos, this._unpinnedColumns);
3883+
this._reorderColumns(column, target, position, this._unpinnedColumns);
38843884
}
38853885

3886-
this._moveColumns(column, target, pos);
3886+
this._moveColumns(column, target, position);
38873887
this._columnsReordered(column, target);
38883888
}
38893889

0 commit comments

Comments
 (0)