File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
projects/igniteui-angular/src/lib/select Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -367,11 +367,15 @@ export class IgxSelectComponent extends IgxDropDownComponent implements IgxSelec
367367 scrollStrategy : new AbsoluteScrollStrategy ( ) ,
368368 excludePositionTarget : true
369369 } ;
370- this . children . changes . pipe ( takeUntil ( this . destroy$ ) ) . subscribe ( ( ) => {
370+ const changes$ = this . children . changes . pipe ( takeUntil ( this . destroy$ ) ) . subscribe ( ( ) => {
371371 this . setSelection ( this . items . find ( x => x . value === this . value ) ) ;
372372 this . cdr . detectChanges ( ) ;
373373 } ) ;
374- Promise . resolve ( ) . then ( ( ) => this . children . notifyOnChanges ( ) ) ;
374+ Promise . resolve ( ) . then ( ( ) => {
375+ if ( ! changes$ . closed ) {
376+ this . children . notifyOnChanges ( ) ;
377+ }
378+ } ) ;
375379 }
376380
377381 /** @hidden @internal */
You can’t perform that action at this time.
0 commit comments