Skip to content

Commit e69e6ad

Browse files
MKirovaMKirova
MKirova
authored and
MKirova
committed
chore(*): Fixing issue with ContentChildren for grid columns/row islands.
1 parent 2f16c5c commit e69e6ad

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export class IgxColumnGroupComponent extends IgxColumnComponent implements After
164164
this._headerTemplate = this.headTemplate.toArray()[0].template;
165165
}
166166
// 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) {
168168
this.children.reset(this.children.toArray().slice(1));
169169
}
170170
this.children.forEach(child => {

projects/igniteui-angular/src/lib/grids/hierarchical-grid/row-island.component.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,9 @@ export class IgxRowIslandComponent extends IgxHierarchicalGridBaseDirective
267267
}
268268

269269
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+
}
272273
this.children.forEach(child => {
273274
child.parentIsland = this;
274275
});

0 commit comments

Comments
 (0)