From cd58c3b3d95fcd1bef990eb46a965069169b6871 Mon Sep 17 00:00:00 2001 From: Libor Zoubek Date: Sat, 24 Sep 2016 01:17:35 +0200 Subject: [PATCH] fix(datepicker): imlement ReactiveForms setDisabledState for TimepickerComponent closes #1024 --- components/timepicker/timepicker.component.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/timepicker/timepicker.component.ts b/components/timepicker/timepicker.component.ts index 286470f06e..67a753126b 100644 --- a/components/timepicker/timepicker.component.ts +++ b/components/timepicker/timepicker.component.ts @@ -196,7 +196,11 @@ export class TimepickerComponent implements ControlValueAccessor, OnInit { this.onTouched = fn; } - public updateHours():void { + public setDisabledState(isDisabled: boolean): void { + this.readonlyInput = isDisabled; + } + + protected updateHours():void { if (this.readonlyInput) { return; }