Skip to content

Commit 0071733

Browse files
authored
fix(timepicker): correctly set initial time manually (#2945)
1 parent 37b8454 commit 0071733

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/timepicker/timepicker.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,8 @@ export class TimepickerComponent
203203
}
204204

205205
_updateTime() {
206-
if (!isInputValid(this.hours, this.minutes, this.seconds, this.isPM())) {
206+
const _seconds = this.showSeconds ? this.seconds : void 0;
207+
if (!isInputValid(this.hours, this.minutes, _seconds, this.isPM())) {
207208
this.onChange(null);
208209

209210
return;

0 commit comments

Comments
 (0)