Skip to content

Commit

Permalink
fix(datepicker): imlement ReactiveForms setDisabledState for Timepick…
Browse files Browse the repository at this point in the history
…erComponent

closes #1024
  • Loading branch information
lzoubek authored and valorkin committed Oct 4, 2016
1 parent 01f4759 commit cd58c3b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/timepicker/timepicker.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit cd58c3b

Please sign in to comment.