File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1818,6 +1818,7 @@ describe('MatSelect', () => {
1818
1818
fixture . componentInstance . select . open ( ) ;
1819
1819
fixture . detectChanges ( ) ;
1820
1820
flush ( ) ;
1821
+ fixture . detectChanges ( ) ;
1821
1822
1822
1823
host = fixture . debugElement . query ( By . css ( 'mat-select' ) ) . nativeElement ;
1823
1824
panel = overlayContainerElement . querySelector ( '.mat-select-panel' ) ! as HTMLElement ;
@@ -4232,7 +4233,7 @@ class BasicSelect {
4232
4233
panelClass = [ 'custom-one' , 'custom-two' ] ;
4233
4234
disableRipple : boolean ;
4234
4235
4235
- @ViewChild ( MatSelect ) select : MatSelect ;
4236
+ @ViewChild ( MatSelect , { static : true } ) select : MatSelect ;
4236
4237
@ViewChildren ( MatOption ) options : QueryList < MatOption > ;
4237
4238
}
4238
4239
@@ -4386,7 +4387,7 @@ class CustomSelectAccessor implements ControlValueAccessor {
4386
4387
} )
4387
4388
class CompWithCustomSelect {
4388
4389
ctrl = new FormControl ( 'initial value' ) ;
4389
- @ViewChild ( CustomSelectAccessor ) customAccessor : CustomSelectAccessor ;
4390
+ @ViewChild ( CustomSelectAccessor , { static : true } ) customAccessor : CustomSelectAccessor ;
4390
4391
}
4391
4392
4392
4393
@Component ( {
You can’t perform that action at this time.
0 commit comments