Skip to content

Commit 71dec02

Browse files
MKirovaMKirova
authored andcommitted
chore(*): Update position when moving from one pinned area to another.
1 parent a93fc98 commit 71dec02

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4771,6 +4771,11 @@ export abstract class IgxGridBaseDirective implements GridType,
47714771
column.unpin(index);
47724772
}
47734773

4774+
// both are pinned but are in different sides
4775+
if (target.pinned && column.pinned && target.pinningPosition !== column.pinningPosition) {
4776+
column.pinningPosition = target.pinningPosition;
4777+
}
4778+
47744779
// if (target.pinned && column.pinned && !columnPinStateChanged) {
47754780
// this._reorderColumns(column, target, pos, this._pinnedColumns);
47764781
// }

0 commit comments

Comments
 (0)