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.27k stars 6.73k forks source link

uib-datepicker-popup not updating textbox when year 0000 is entered in texbox #6348

Closed rrmehta83 closed 7 years ago

rrmehta83 commented 7 years ago

when manually typing date if year 0000 is entered model value gets updated with year 1 (i.e 0001) but text box still shows year as 0000 where as calendar popup shows 0001 year. I don't know if it is bug, but from user point of view text box should also get updated in case of two way binding.

http://plnkr.co/edit/juq5j9HI3rzPI22bis4H?p=preview

Enter year as 0000, see model value updating but text box does not update

wesleycho commented 7 years ago

This looks like a bug in Angular's date filter - see here for demonstration date is correct here.

I just opened an issue https://github.com/angular/angular.js/issues/15548 to track this, closing this issue - be sure to follow the issue in Angular in order to track it.