From ba7c6c5382f223b8d1ab734fba6bd1c6da501b35 Mon Sep 17 00:00:00 2001 From: Amine BIZID Date: Fri, 9 Sep 2016 13:13:45 +0200 Subject: [PATCH 1/3] fix input --- src/lib/input/input.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/lib/input/input.ts b/src/lib/input/input.ts index 5ca3e1665ca2..3a833bee8da0 100644 --- a/src/lib/input/input.ts +++ b/src/lib/input/input.ts @@ -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() { From 14e5152cddc8eca3f3ce19a36fdd47b2d4a31abe Mon Sep 17 00:00:00 2001 From: Amine BIZID Date: Fri, 9 Sep 2016 13:15:57 +0200 Subject: [PATCH 2/3] fix checkbox --- src/lib/checkbox/checkbox.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/lib/checkbox/checkbox.ts b/src/lib/checkbox/checkbox.ts index 39959ada95af..fe71bd0ff605 100644 --- a/src/lib/checkbox/checkbox.ts +++ b/src/lib/checkbox/checkbox.ts @@ -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; + } private _transitionCheckState(newState: TransitionCheckState) { let oldState = this._currentCheckState; From b9a6c6e22a59363246dfb05f00bf18c39ecc1f6c Mon Sep 17 00:00:00 2001 From: Amine BIZID Date: Fri, 9 Sep 2016 13:17:46 +0200 Subject: [PATCH 3/3] fix radio --- src/lib/radio/radio.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/lib/radio/radio.ts b/src/lib/radio/radio.ts index 1f9db8306946..30a82f1c7db6 100644 --- a/src/lib/radio/radio.ts +++ b/src/lib/radio/radio.ts @@ -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; + } + }