restorando / angular-pickadate

A simple and fluid inline datepicker for AngularJS with no extra dependencies.
MIT License
273 stars 91 forks source link

Date change does not work if the new month is different than the current #46

Closed Kraku closed 9 years ago

Kraku commented 9 years ago

It is not possible to change the date by a model if the new month is different than the current.

example:

$scope.date = '2015-03-12';
<button type="button" ng-click="data='2015-04-12'">click</button>

After click $scope.date will be undefined.

gschammah commented 9 years ago

This is working in the latest version.

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

Can you please double check to see if my demo is reproducing your case?

Kraku commented 9 years ago

Last version (e89022cfb5ab7abbb26139b05a62f9147fd8f247) works correctly, thanks!