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 dcb06a7 commit c81362eCopy full SHA for c81362e
src/material/select/select.ts
@@ -556,14 +556,17 @@ export class MatSelect
556
);
557
}
558
559
- return new Observable(subscriber =>
560
- runInInjectionContext(this._injector, () => {
561
- afterNextRender(() => {
+ return new Observable(subscriber => () => {
+ afterNextRender(
+ () => {
562
subscriber.next();
563
subscriber.complete();
564
- });
565
- }),
566
- ).pipe(switchMap(() => this.optionSelectionChanges));
+ },
+ {
+ injector: this._injector,
567
568
+ );
569
+ }).pipe(switchMap(() => this.optionSelectionChanges));
570
}) as Observable<MatOptionSelectionChange>;
571
572
/** Event emitted when the select panel has been toggled. */
0 commit comments