@@ -94,7 +94,6 @@ import {
9494 getMatSelectNonArrayValueError ,
9595 getMatSelectNonFunctionValueError ,
9696} from './select-errors' ;
97- import { NgClass } from '@angular/common' ;
9897
9998/** Injection token that determines the scroll handling while a select is open. */
10099export const MAT_SELECT_SCROLL_STRATEGY = new InjectionToken < ( ) => ScrollStrategy > (
@@ -189,7 +188,7 @@ export class MatSelectChange<T = any> {
189188 { provide : MatFormFieldControl , useExisting : MatSelect } ,
190189 { provide : MAT_OPTION_PARENT_COMPONENT , useExisting : MatSelect } ,
191190 ] ,
192- imports : [ CdkOverlayOrigin , CdkConnectedOverlay , NgClass ] ,
191+ imports : [ CdkOverlayOrigin , CdkConnectedOverlay ] ,
193192} )
194193export class MatSelect
195194 implements
@@ -711,6 +710,10 @@ export class MatSelect
711710 if ( changes [ 'typeaheadDebounceInterval' ] && this . _keyManager ) {
712711 this . _keyManager . withTypeAhead ( this . typeaheadDebounceInterval ) ;
713712 }
713+
714+ if ( changes [ 'panelClass' ] && this . panelClass instanceof Set ) {
715+ this . panelClass = Array . from ( this . panelClass ) ;
716+ }
714717 }
715718
716719 ngOnDestroy ( ) {
@@ -1085,11 +1088,6 @@ export class MatSelect
10851088 }
10861089 }
10871090
1088- /** Returns the theme to be used on the panel. */
1089- _getPanelTheme ( ) : string {
1090- return this . _parentFormField ? `mat-${ this . _parentFormField . color } ` : '' ;
1091- }
1092-
10931091 /** Whether the select has a value. */
10941092 get empty ( ) : boolean {
10951093 return ! this . _selectionModel || this . _selectionModel . isEmpty ( ) ;
0 commit comments