File tree 2 files changed +4
-3
lines changed
projects/igniteui-angular/src/lib/grids
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ export class IgxColumnGroupComponent extends IgxColumnComponent implements After
164
164
this . _headerTemplate = this . headTemplate . toArray ( ) [ 0 ] . template ;
165
165
}
166
166
// currently only ivy fixes the issue, we have to slice only if the first child is group
167
- if ( this . children . first . columnGroup ) {
167
+ if ( this . children . first === this ) {
168
168
this . children . reset ( this . children . toArray ( ) . slice ( 1 ) ) ;
169
169
}
170
170
this . children . forEach ( child => {
Original file line number Diff line number Diff line change @@ -267,8 +267,9 @@ export class IgxRowIslandComponent extends IgxHierarchicalGridBaseDirective
267
267
}
268
268
269
269
protected updateChildren ( ) {
270
- // Delete the line below once we update to Angular 9
271
- this . children . reset ( this . children . toArray ( ) . slice ( 1 ) ) ;
270
+ if ( this . children . first === this ) {
271
+ this . children . reset ( this . children . toArray ( ) . slice ( 1 ) ) ;
272
+ }
272
273
this . children . forEach ( child => {
273
274
child . parentIsland = this ;
274
275
} ) ;
You can’t perform that action at this time.
0 commit comments