File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
projects/igniteui-angular/src/lib/grids Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -2735,9 +2735,7 @@ export class IgxGridBaseDirective extends DisplayDensityBase implements
27352735 this . columnList . changes
27362736 . pipe ( takeUntil ( this . destroy$ ) )
27372737 . subscribe ( ( change : QueryList < IgxColumnComponent > ) => {
2738- Promise . resolve ( ) . then ( ( ) => {
2739- this . onColumnsChanged ( change ) ;
2740- } ) ;
2738+ this . onColumnsChanged ( change ) ;
27412739 } ) ;
27422740 }
27432741
Original file line number Diff line number Diff line change @@ -415,12 +415,14 @@ export class IgxHierarchicalGridComponent extends IgxHierarchicalGridBaseDirecti
415415 }
416416
417417 protected onColumnsChanged ( change : QueryList < IgxColumnComponent > ) {
418- this . updateColumnList ( ) ;
419- const cols = change . filter ( c => c . gridAPI . grid === this ) ;
420- if ( cols . length > 0 || this . autoGenerate ) {
421- this . columnList . reset ( cols ) ;
422- super . onColumnsChanged ( this . columnList ) ;
423- }
418+ Promise . resolve ( ) . then ( ( ) => {
419+ this . updateColumnList ( ) ;
420+ const cols = change . filter ( c => c . gridAPI . grid === this ) ;
421+ if ( cols . length > 0 || this . autoGenerate ) {
422+ this . columnList . reset ( cols ) ;
423+ super . onColumnsChanged ( this . columnList ) ;
424+ }
425+ } ) ;
424426 }
425427
426428 private updateColumnList ( recalcColSizes = true ) {
You can’t perform that action at this time.
0 commit comments