@@ -74,7 +74,7 @@ export class CdkOption<T = unknown> implements ListKeyManagerOption, Highlightab
74
74
get selected ( ) : boolean {
75
75
return this . _selected ;
76
76
}
77
- set selected ( value : boolean ) {
77
+ set selected ( value : BooleanInput ) {
78
78
if ( ! this . _disabled ) {
79
79
this . _selected = coerceBooleanProperty ( value ) ;
80
80
}
@@ -84,7 +84,7 @@ export class CdkOption<T = unknown> implements ListKeyManagerOption, Highlightab
84
84
get disabled ( ) : boolean {
85
85
return this . _disabled ;
86
86
}
87
- set disabled ( value : boolean ) {
87
+ set disabled ( value : BooleanInput ) {
88
88
this . _disabled = coerceBooleanProperty ( value ) ;
89
89
}
90
90
@@ -198,9 +198,6 @@ export class CdkOption<T = unknown> implements ListKeyManagerOption, Highlightab
198
198
setInactiveStyles ( ) {
199
199
this . _active = false ;
200
200
}
201
-
202
- static ngAcceptInputType_selected : BooleanInput ;
203
- static ngAcceptInputType_disabled : BooleanInput ;
204
201
}
205
202
206
203
@Directive ( {
@@ -261,16 +258,17 @@ export class CdkListbox<T> implements AfterContentInit, OnDestroy, OnInit, Contr
261
258
get multiple ( ) : boolean {
262
259
return this . _multiple ;
263
260
}
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 ;
267
265
}
268
266
269
267
@Input ( )
270
268
get disabled ( ) : boolean {
271
269
return this . _disabled ;
272
270
}
273
- set disabled ( value : boolean ) {
271
+ set disabled ( value : BooleanInput ) {
274
272
this . _disabled = coerceBooleanProperty ( value ) ;
275
273
}
276
274
@@ -279,7 +277,7 @@ export class CdkListbox<T> implements AfterContentInit, OnDestroy, OnInit, Contr
279
277
get useActiveDescendant ( ) : boolean {
280
278
return this . _useActiveDescendant ;
281
279
}
282
- set useActiveDescendant ( shouldUseActiveDescendant : boolean ) {
280
+ set useActiveDescendant ( shouldUseActiveDescendant : BooleanInput ) {
283
281
this . _useActiveDescendant = coerceBooleanProperty ( shouldUseActiveDescendant ) ;
284
282
}
285
283
@@ -288,7 +286,7 @@ export class CdkListbox<T> implements AfterContentInit, OnDestroy, OnInit, Contr
288
286
get autoFocus ( ) : boolean {
289
287
return this . _autoFocus ;
290
288
}
291
- set autoFocus ( shouldAutoFocus : boolean ) {
289
+ set autoFocus ( shouldAutoFocus : BooleanInput ) {
292
290
this . _autoFocus = coerceBooleanProperty ( shouldAutoFocus ) ;
293
291
}
294
292
@@ -553,11 +551,6 @@ export class CdkListbox<T> implements AfterContentInit, OnDestroy, OnInit, Contr
553
551
}
554
552
}
555
553
}
556
-
557
- static ngAcceptInputType_disabled : BooleanInput ;
558
- static ngAcceptInputType_multiple : BooleanInput ;
559
- static ngAcceptInputType_useActiveDescendant : BooleanInput ;
560
- static ngAcceptInputType_autoFocus : BooleanInput ;
561
554
}
562
555
563
556
/** Change event that is being fired whenever the selected state of an option changes. */
0 commit comments