@@ -74,7 +74,7 @@ export class CdkOption<T = unknown> implements ListKeyManagerOption, Highlightab
7474 get selected ( ) : boolean {
7575 return this . _selected ;
7676 }
77- set selected ( value : boolean ) {
77+ set selected ( value : BooleanInput ) {
7878 if ( ! this . _disabled ) {
7979 this . _selected = coerceBooleanProperty ( value ) ;
8080 }
@@ -84,7 +84,7 @@ export class CdkOption<T = unknown> implements ListKeyManagerOption, Highlightab
8484 get disabled ( ) : boolean {
8585 return this . _disabled ;
8686 }
87- set disabled ( value : boolean ) {
87+ set disabled ( value : BooleanInput ) {
8888 this . _disabled = coerceBooleanProperty ( value ) ;
8989 }
9090
@@ -198,9 +198,6 @@ export class CdkOption<T = unknown> implements ListKeyManagerOption, Highlightab
198198 setInactiveStyles ( ) {
199199 this . _active = false ;
200200 }
201-
202- static ngAcceptInputType_selected : BooleanInput ;
203- static ngAcceptInputType_disabled : BooleanInput ;
204201}
205202
206203@Directive ( {
@@ -261,16 +258,17 @@ export class CdkListbox<T> implements AfterContentInit, OnDestroy, OnInit, Contr
261258 get multiple ( ) : boolean {
262259 return this . _multiple ;
263260 }
264- set multiple ( value : boolean ) {
265- this . _updateSelectionOnMultiSelectionChange ( value ) ;
266- this . _multiple = coerceBooleanProperty ( value ) ;
261+ set multiple ( value : BooleanInput ) {
262+ const coercedValue = coerceBooleanProperty ( value ) ;
263+ this . _updateSelectionOnMultiSelectionChange ( coercedValue ) ;
264+ this . _multiple = coercedValue ;
267265 }
268266
269267 @Input ( )
270268 get disabled ( ) : boolean {
271269 return this . _disabled ;
272270 }
273- set disabled ( value : boolean ) {
271+ set disabled ( value : BooleanInput ) {
274272 this . _disabled = coerceBooleanProperty ( value ) ;
275273 }
276274
@@ -279,7 +277,7 @@ export class CdkListbox<T> implements AfterContentInit, OnDestroy, OnInit, Contr
279277 get useActiveDescendant ( ) : boolean {
280278 return this . _useActiveDescendant ;
281279 }
282- set useActiveDescendant ( shouldUseActiveDescendant : boolean ) {
280+ set useActiveDescendant ( shouldUseActiveDescendant : BooleanInput ) {
283281 this . _useActiveDescendant = coerceBooleanProperty ( shouldUseActiveDescendant ) ;
284282 }
285283
@@ -288,7 +286,7 @@ export class CdkListbox<T> implements AfterContentInit, OnDestroy, OnInit, Contr
288286 get autoFocus ( ) : boolean {
289287 return this . _autoFocus ;
290288 }
291- set autoFocus ( shouldAutoFocus : boolean ) {
289+ set autoFocus ( shouldAutoFocus : BooleanInput ) {
292290 this . _autoFocus = coerceBooleanProperty ( shouldAutoFocus ) ;
293291 }
294292
@@ -553,11 +551,6 @@ export class CdkListbox<T> implements AfterContentInit, OnDestroy, OnInit, Contr
553551 }
554552 }
555553 }
556-
557- static ngAcceptInputType_disabled : BooleanInput ;
558- static ngAcceptInputType_multiple : BooleanInput ;
559- static ngAcceptInputType_useActiveDescendant : BooleanInput ;
560- static ngAcceptInputType_autoFocus : BooleanInput ;
561554}
562555
563556/** Change event that is being fired whenever the selected state of an option changes. */
0 commit comments