Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/lib/checkbox/checkbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,14 @@ export class MdCheckbox implements ControlValueAccessor {
registerOnTouched(fn: any) {
this.onTouched = fn;
}

/**
* Implemented as part of ControlValueAccessor.
* TODO: internal
*/
setDisabledState(isDisabled: boolean): void {
this.disabled = isDisabled;
}
Copy link
Member

@jelbourn jelbourn Sep 9, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indent should be +2, not +4

(here and elsewhere)


private _transitionCheckState(newState: TransitionCheckState) {
let oldState = this._currentCheckState;
Expand Down
8 changes: 8 additions & 0 deletions src/lib/input/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,14 @@ export class MdInput implements ControlValueAccessor, AfterContentInit, OnChange
registerOnTouched(fn: any) {
this._onTouchedCallback = fn;
}

/**
* Implemented as part of ControlValueAccessor.
* TODO: internal
*/
setDisabledState(isDisabled: boolean): void {
this.disabled = isDisabled;
}

/** TODO: internal */
ngAfterContentInit() {
Expand Down
9 changes: 9 additions & 0 deletions src/lib/radio/radio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,15 @@ export class MdRadioGroup implements AfterContentInit, ControlValueAccessor {
registerOnTouched(fn: any) {
this.onTouched = fn;
}

/**
* Implemented as part of ControlValueAccessor.
* TODO: internal
*/
setDisabledState(isDisabled: boolean): void {
this.disabled = isDisabled;
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fix also needs corresponding unit tests

}


Expand Down