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 @@ -1759,6 +1759,7 @@ describe('MatSelect', () => {
1759
1759
fixture . componentInstance . select . open ( ) ;
1760
1760
fixture . detectChanges ( ) ;
1761
1761
flush ( ) ;
1762
+ fixture . detectChanges ( ) ;
1762
1763
1763
1764
host = fixture . debugElement . query ( By . css ( 'mat-select' ) ) . nativeElement ;
1764
1765
panel = overlayContainerElement . querySelector ( '.mat-select-panel' ) ! as HTMLElement ;
@@ -4172,7 +4173,7 @@ class BasicSelect {
4172
4173
panelClass = [ 'custom-one' , 'custom-two' ] ;
4173
4174
disableRipple : boolean ;
4174
4175
4175
- @ViewChild ( MatSelect ) select : MatSelect ;
4176
+ @ViewChild ( MatSelect , { static : true } ) select : MatSelect ;
4176
4177
@ViewChildren ( MatOption ) options : QueryList < MatOption > ;
4177
4178
}
4178
4179
@@ -4326,7 +4327,7 @@ class CustomSelectAccessor implements ControlValueAccessor {
4326
4327
} )
4327
4328
class CompWithCustomSelect {
4328
4329
ctrl = new FormControl ( 'initial value' ) ;
4329
- @ViewChild ( CustomSelectAccessor ) customAccessor : CustomSelectAccessor ;
4330
+ @ViewChild ( CustomSelectAccessor , { static : true } ) customAccessor : CustomSelectAccessor ;
4330
4331
}
4331
4332
4332
4333
@Component ( {
You can’t perform that action at this time.
0 commit comments