Skip to content

Commit

Permalink
fix(ngxTimepicker): check value if null, empty or undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
Agranom committed Jul 27, 2018
1 parent 4cc9491 commit 395188c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ export class TimepickerDirective implements ControlValueAccessor, OnDestroy, OnC

@Input()
set value(value: string) {
if (!value) {
return;
}
this._value = formatTime(value, this._format);

if (this.isValueAvailableToUpdate()) {
Expand Down

0 comments on commit 395188c

Please sign in to comment.