File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -112,11 +112,15 @@ export class MdCheckbox implements ControlValueAccessor {
112112 /** Whether or not the checkbox should come before or after the label. */
113113 @Input ( ) align : 'start' | 'end' = 'start' ;
114114
115+ private _disabled : boolean ;
116+
115117 /**
116118 * Whether the checkbox is disabled. When the checkbox is disabled it cannot be interacted with.
117119 * The correct ARIA attributes are applied to denote this to assistive technology.
118120 */
119- @Input ( ) disabled : boolean = false ;
121+ @Input ( )
122+ get disabled ( ) : boolean { return this . _disabled ; }
123+ set disabled ( value ) { this . _disabled = coerceBooleanProperty ( value ) ; }
120124
121125 /**
122126 * The tabindex attribute for the checkbox. Note that when the checkbox is disabled, the attribute
You can’t perform that action at this time.
0 commit comments