ngx-material-timepicker
ngx-material-timepicker copied to clipboard
MinutesGap in combination with DefaultTime binding causes selectedTime not to be set.
I am using this concrete code in my *.component.html:
<mat-form-field class="full-width">
<input [format]="24" [ngxTimepicker]="fullTime" formControlName="startingTime"
[minutesGap]="5" matInput readonly required>
<ngx-material-timepicker #fullTime></ngx-material-timepicker>
</mat-form-field>
I am using FormControl to set the initial/default value of the timepicker component (I also tried defaultTime binding) which is working fine. This in combination with the minutesGap binding causes the following error everytime it the current time is not matching the 5 minutes patter:
This results in graphical bug where the numbers of the minutes dial are not displayed, because the selectedTime is not set properly on a minuteGap=5 if it is e.g. 15:23. Another click (time selection) is necessary to trigger the display of the numbers on the dial.
As it seems to be an easy fix, it would be nice to have it fixed in the next patch release. Best Regards, Martin