@@ -12,13 +12,13 @@ import { Directionality } from '@angular/cdk/bidi';
12
12
import { hasModifierKey , ESCAPE , ENTER , TAB , UP_ARROW , DOWN_ARROW } from '@angular/cdk/keycodes' ;
13
13
import { BreakpointObserver , Breakpoints } from '@angular/cdk/layout' ;
14
14
import { TemplatePortal } from '@angular/cdk/portal' ;
15
+ import { coerceArray } from '@angular/cdk/coercion' ;
15
16
import { NG_VALUE_ACCESSOR } from '@angular/forms' ;
16
17
import { filter , map , startWith , switchMap , tap , delay , take } from 'rxjs/operators' ;
17
18
import { h as MAT_FORM_FIELD } from './form-field-DpN-CJrJ.mjs' ;
18
19
import { M as MatOptionModule } from './index-BHJ4tVIe.mjs' ;
19
20
import { M as MatCommonModule } from './common-module-DZl8g1kc.mjs' ;
20
21
import './ripple-CuyVtN3V.mjs' ;
21
- import '@angular/cdk/coercion' ;
22
22
import '@angular/cdk/private' ;
23
23
import './pseudo-checkbox-BFGIaGxz.mjs' ;
24
24
import './structural-styles-CasigI3l.mjs' ;
@@ -413,6 +413,8 @@ class MatAutocompleteTrigger {
413
413
_pendingAutoselectedOption ;
414
414
/** Stream of keyboard events that can close the panel. */
415
415
_closeKeyEventStream = new Subject ( ) ;
416
+ /** Classes to apply to the panel. Exposed as a public property for internal usage. */
417
+ _overlayPanelClass = coerceArray ( this . _defaults ?. overlayPanelClass || [ ] ) ;
416
418
/**
417
419
* Event handler for when the window is blurred. Needs to be an
418
420
* arrow function in order to preserve the context.
@@ -1000,7 +1002,7 @@ class MatAutocompleteTrigger {
1000
1002
direction : this . _dir ?? undefined ,
1001
1003
hasBackdrop : this . _defaults ?. hasBackdrop ,
1002
1004
backdropClass : this . _defaults ?. backdropClass ,
1003
- panelClass : this . _defaults ?. overlayPanelClass ,
1005
+ panelClass : this . _overlayPanelClass ,
1004
1006
disableAnimations : this . _animationsDisabled ,
1005
1007
} ) ;
1006
1008
}
0 commit comments