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

Update datepicker.js #2932

Closed
wants to merge 1 commit into from
Closed

Conversation

TylerL-uxai
Copy link

Now the model is a date object so when the inline datepicker is used, the date actually gets formatted. Saving millions of people tons of time and hassle with this fix.

Now the model is a date object so when the inline datepicker is used, the date actually gets formatted. Saving millions of people tons of time and hassle with this fix.
@chrisirhc
Copy link
Contributor

I'm guessing this is trying to resolve issues with AngularJS 1.3 ? I'm not sure what this is trying to fix. Is there particular issue number this is trying to address?

Working on AngularJS 1.3 compatibility is going to require quite an amount of work, feel free to tackle it and make the tests pass.

shwei added a commit to shwei/bootstrap that referenced this pull request Dec 10, 2014
Add AngularJS 1.3 compatibility - datepicker display issue reported in angular-ui#2932 and angular-ui#3047.
@christopherthielen
Copy link
Contributor

Add a truthy test: if (ngModel.$viewValue) ngModel.$viewValue = new Date(ngModel.$viewValue);

@chrisirhc chrisirhc added this to the Purgatory milestone Dec 12, 2014
@KrisBraun
Copy link

#2943 contains a slightly better fix -- handles the case when the value is null

@antoinepairet
Copy link

This commit should have fixed it: 5f9afe5

see the working plunkr: http://plnkr.co/edit/0EEK4JpvW7GXqbhAgVwJ?p=preview

regrads

@karianna karianna modified the milestones: 0.13.0, Purgatory Feb 21, 2015
antoinepairet pushed a commit that referenced this pull request Feb 21, 2015
Closes #3293
Closes #3279
Closes #2440
Closes #2932
Closes #3074
Closes #2943
Closes #2733

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

Successfully merging this pull request may close these issues.

6 participants