Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

V0.13 - Cannot type only day with popup datepicker #3869

Closed
tdeverdiere opened this issue Jun 29, 2015 · 4 comments
Closed

V0.13 - Cannot type only day with popup datepicker #3869

tdeverdiere opened this issue Jun 29, 2015 · 4 comments

Comments

@tdeverdiere
Copy link

We use the datepicker with the french format : dd/MM/yyyy and with the popup directive.
You use sometimes keyboard to type the date. When you only type the day, the model is not changed.
Ex : current date is 29/06/2015. You change 29 to 01, the date doesn't change. Here is the plunker :

http://plnkr.co/edit/0lgEAmwhSxiimfKxmS24?p=preview

I don't think this is du to format because with yyyy/MM/dd i also reproduce the problem.

@ovarunendra
Copy link

+1

@wesleycho
Copy link
Contributor

This appears to be a duplicate of #3713

@tdeverdiere
Copy link
Author

In my Plunker you will not see the error TypeError: baseDate.getFullYear is not a function as in the #3713
The stack of the error is :

Datepicker directive: "ng-model" value must be a Date object, a number of milliseconds since 01.01.1970 or a string representing an RFC2822 or ISO 8601 date.
(anonymous function) @ angular.js:11607
render @ ui-bootstrap-tpls-0.13.0.js:1071
ngModelCtrl.$render @ ui-bootstrap-tpls-0.13.0.js:1059
ngModelWatch @ angular.js:23293
Scope.$digest @ angular.js:14235
Scope.$apply @ angular.js:14506
$$debounceViewValueCommit @ angular.js:23262
$setViewValue @ angular.js:23234
listener @ angular.js:19653
eventHandler @ angular.js:3014

@wesleycho
Copy link
Contributor

Right, but it turns out to be tightly related - #3759 should fix this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants