File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
projects/igniteui-angular/src/lib/grids Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1850,9 +1850,13 @@ export class IgxColumnGroupComponent extends IgxColumnComponent implements After
18501850 this . children . forEach ( child => {
18511851 child . parent = this ;
18521852 } ) ;
1853+ /*
1854+ TO DO: In Angular 9 this need to be removed, because the @ContentChildren will not return the `parent`
1855+ component in the query list.
1856+ */
18531857 this . children . changes . pipe ( takeUntil ( this . destroy$ ) )
1854- . subscribe ( ( ) => {
1855- if ( this . children && this . children . toArray ( ) . length > 0 && this . children . toArray ( ) [ 0 ] === this ) {
1858+ . subscribe ( ( change ) => {
1859+ if ( change . length > 1 && change . first === this ) {
18561860 this . children . reset ( this . children . toArray ( ) . slice ( 1 ) ) ;
18571861 this . children . forEach ( child => {
18581862 child . parent = this ;
You can’t perform that action at this time.
0 commit comments