Skip to content

Commit 655fdbf

Browse files
committed
.
1 parent f1a6692 commit 655fdbf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/lib/checkbox/checkbox.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,7 @@ export class MdCheckbox implements ControlValueAccessor, AfterViewInit, OnDestro
142142
/** Whether the checkbox is disabled. */
143143
@Input()
144144
get disabled(): boolean { return this._disabled; }
145-
set disabled(value) {
146-
this._disabled = coerceBooleanProperty(value);
147-
this._changeDetectorRef.markForCheck();
148-
}
145+
set disabled(value) { this._disabled = coerceBooleanProperty(value);}
149146

150147
/** Tabindex value that is passed to the underlying input element. */
151148
@Input() tabIndex: number = 0;
@@ -307,6 +304,7 @@ export class MdCheckbox implements ControlValueAccessor, AfterViewInit, OnDestro
307304
*/
308305
setDisabledState(isDisabled: boolean) {
309306
this.disabled = isDisabled;
307+
this._changeDetectorRef.markForCheck();
310308
}
311309

312310
private _transitionCheckState(newState: TransitionCheckState) {

0 commit comments

Comments
 (0)