I updated the
ui-bootstrap version from
0.13.4, It broke the validation on
Plunkr with a problem
Previously I was using 0.13.0 and it was working fine.
Basically when I tried to populate
datepicker value from database, which returned by server as
2015-10-15T04:00:00, it gets bound correct to datepicker, but additionally it is adding
datepicker-popup element. Because of this
ng-invalid on input field
datepicker element shown with
Further digging into it, I found that there were some changes made while releasing 0.13.2 related to
dateParser which removes the creation of
new Date when its invalid.
Github Issue link
Any workaround would appreciate.