danielmoncada / date-time-picker-moment-adapter

Moment.js adapter for https://github.com/danielmoncada/date-time-picker
MIT License
5 stars 9 forks source link

Validation is to fast. #4

Open StanDEV1234340t98 opened 2 years ago

StanDEV1234340t98 commented 2 years ago

TimepickerValidationStartTimepickerValidation

Hi Daniel Moncada, I have a validation bug, as seen in the screenshot; when the end time is lower than the start time, the validation instantly changes the start time to the end time input. For instance I have 11:15 as start time and want to type with keyboard 15:15 for end time, the start time jumps to 01 because the "1" of "15" is lower than 11.

I think in the past with angular 7 I didn't have this issue, but when I have upgraded to angular 12 this happens. How can I delay the input validation? Or how can I solve this issue?

I'm using the current packages: @angular/animations": "~12.2.14", "@angular/cdk": "^12.2.13", "@danielmoncada/angular-datetime-picker": "^13.1.1", "@danielmoncada/angular-datetime-picker-moment-adapter": "^1.1.0",

code: <owl-date-time

dtPickerRef

[pickerType]="'timer'" [hour12Timer] = false [stepMinute]="15"

huski1017 commented 2 years ago

@danielmoncada Is there any update on that subject?