Skip to content

Commit 38ee97c

Browse files
MKirovaMKirova
authored andcommitted
chore(*): Adding handling for scenario where column is initially pinned and is then unpinned and needs to go to the initial index of the columnsList.
1 parent 79f88dd commit 38ee97c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,7 @@ export class IgxColumnComponent implements AfterContentInit {
547547
/* No grid/width available at initialization. `initPinning` in the grid
548548
will re-init the group (if present)
549549
*/
550+
this._unpinnedIndex = this.grid.columns.filter(x => !x.pinned).indexOf(this);
550551
this._pinned = value;
551552
this.pinnedChange.emit(this._pinned);
552553
}

0 commit comments

Comments
 (0)