File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
projects/igniteui-angular/src/lib/grids/columns Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,12 @@ export class IgxColumnLayoutComponent extends IgxColumnGroupComponent implements
100
100
this . children . forEach ( child => child . hidden = value ) ;
101
101
if ( this . grid && this . grid . columns && this . grid . columns . length > 0 ) {
102
102
// reset indexes in case columns are hidden/shown runtime
103
- this . grid . columns . filter ( x => x . columnGroup ) . forEach ( x => x . populateVisibleIndexes ( ) ) ;
103
+ const columns = this . grid && this . grid . pinnedColumns && this . grid . unpinnedColumns ?
104
+ this . grid . pinnedColumns . concat ( this . grid . unpinnedColumns ) : [ ] ;
105
+ if ( ! this . _hidden && ! columns . find ( c => c . field === this . field ) ) {
106
+ this . grid . resetColumnCollections ( ) ;
107
+ }
108
+ this . grid . columns . filter ( x => x . columnLayout ) . forEach ( x => x . populateVisibleIndexes ( ) ) ;
104
109
}
105
110
}
106
111
You can’t perform that action at this time.
0 commit comments