Skip to content

Commit

Permalink
fix(timepicker): correctly set initial time manually (#2945)
Browse files Browse the repository at this point in the history
  • Loading branch information
valorkin authored Nov 2, 2017
1 parent 37b8454 commit 0071733
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/timepicker/timepicker.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@ export class TimepickerComponent
}

_updateTime() {
if (!isInputValid(this.hours, this.minutes, this.seconds, this.isPM())) {
const _seconds = this.showSeconds ? this.seconds : void 0;
if (!isInputValid(this.hours, this.minutes, _seconds, this.isPM())) {
this.onChange(null);

return;
Expand Down

0 comments on commit 0071733

Please sign in to comment.