IliaIdakiev / angular-material-timepicker

Angular Material Timepicker Input for Template and Reactive forms

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bug(timepicker) Won't set selected current time

Totati opened this issue · comments

Hello, there's a bug, when opening the timepicker with null value, it seems that the current time is selected, but clicking OK won't set the value, and leaves the control empty. Stackblitz DEMO

Hello, thanks for opening this issue. I will resolve the problem later today and I will close the issue after that.

@IliaIdakiev I've found a similar bug 😅When I use the timepicker as a standalone input without model, focusout sets undefined as the the text of the nativeElement.value.

this.renderer.setProperty(this.elRef.nativeElement, 'value', value);

I've updated the stackblitz example. I'm using a model less timepicker, and updating a control behind a datepicker.

bf5f8ee - mat-timepicker@4.1.2

@Totati I hope everything is working as expected now? If so would you mind star-ing the library, thanks.

@IliaIdakiev The closing bug it now gone, it works fine, however the undefined value still occurs. Example

Fixed @ 4.1.4