angular-ui / bootstrap

PLEASE READ THE PROJECT STATUS BELOW. Native AngularJS (Angular) directives for Bootstrap. Smaller footprint (20kB gzipped), no 3rd party JS dependencies (jQuery, bootstrap JS) required. Please read the README.md file before submitting an issue!
http://angular-ui.github.io/bootstrap/
MIT License
14.29k stars 6.73k forks source link

DatePicker : Date-init with DateMin doesn't work correctly #6585

Open Castier opened 7 years ago

Castier commented 7 years ago

Bug description:

If you have a date-init you can choose a date before the "DateMin" ( see steps to reproduce the issue because it's a particular case)

Link to minimally-working plunker that reproduces the issue:

https://plnkr.co/edit/SzVu3OLMnYpWvx5QIzEw?p=preview

Steps to reproduce the issue:

1) Click to choose a date 2) Popin appear ( in date init : Exemple MAY ) => you remark you can select the 1 of the month (but don't clic ) 3) Go the month before the date-min (Exemple APRIL ) and you don't select date => you remark you can NOT select the 1 of the month 4)Escape the popin without selecting date 5) Click to choose a date 6) Popin appear ( in APRIL :'( ) and you can select before the date-min

Version of Angular, UIBS, and Bootstrap

Angular: 1.5.8

UIBS: 2.4.0

Bootstrap: 3.3.7