Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
tinayuangao committed Apr 13, 2017
1 parent f1a6692 commit 655fdbf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/lib/checkbox/checkbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,7 @@ export class MdCheckbox implements ControlValueAccessor, AfterViewInit, OnDestro
/** Whether the checkbox is disabled. */
@Input()
get disabled(): boolean { return this._disabled; }
set disabled(value) {
this._disabled = coerceBooleanProperty(value);
this._changeDetectorRef.markForCheck();
}
set disabled(value) { this._disabled = coerceBooleanProperty(value);}

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

private _transitionCheckState(newState: TransitionCheckState) {
Expand Down

0 comments on commit 655fdbf

Please sign in to comment.