We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 679d086 commit a948eb7Copy full SHA for a948eb7
projects/igniteui-angular/src/lib/grids/column.component.ts
@@ -1795,10 +1795,12 @@ export class IgxColumnGroupComponent extends IgxColumnComponent implements After
1795
});
1796
this.children.changes.pipe(takeUntil(this.destroy$))
1797
.subscribe(() => {
1798
- this.children.reset(this.children.toArray().slice(1));
1799
- this.children.forEach(child => {
1800
- child.parent = this;
1801
- });
+ if (this.children && this.children.toArray().length > 0 && this.children.toArray()[0] === this) {
+ this.children.reset(this.children.toArray().slice(1));
+ this.children.forEach(child => {
+ child.parent = this;
1802
+ });
1803
+ }
1804
1805
}
1806
0 commit comments