Skip to content

Commit

Permalink
Imlement ReactiveForms setDisabledState for TimepickerComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
lzoubek committed Sep 27, 2016
1 parent 4208f52 commit 944499d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/timepicker/timepicker.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,10 @@ export class TimepickerComponent implements ControlValueAccessor, OnInit {
this.onTouched = fn;
}

public setDisabledState(isDisabled: boolean): void {
this.readonlyInput = isDisabled;
}

protected updateHours():void {
if (this.readonlyInput) {
return;
Expand Down

0 comments on commit 944499d

Please sign in to comment.