valor-software / ngx-bootstrap

Fast and reliable Bootstrap widgets in Angular (supports Ivy engine)
https://valor-software.com/ngx-bootstrap
MIT License
5.53k stars 1.69k forks source link

Cannot use timepicker controls when min date changes #5697

Open kvetis opened 4 years ago

kvetis commented 4 years ago

Bug description

Cannot use icons nor arrow keys after a new minDate is set making the value outside the valid range. The value is not marked as invalid.

Plunker/StackBlitz that reproduces the issue

https://stackblitz.com/edit/timepickert-validation-error?file=app%2Fmin-max.html

Versions of ngx-bootstrap, Angular, and Bootstrap:

ngx-bootstrap: 5.5.0

Angular: 8 (stackblitz), 9

Bootstrap: 3.4.1

Build system: Angular CLI, System.js, webpack, starter seed:

Expected behavior

The chevrons and up and down arrow keys should be usable even after min date is set. The control should behave the same as in scenario, where the validation is set, then value edited outside the valid range.

sonicpro commented 4 years ago

I am going to look at this.