Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Day reset when current year selected #14

Open
mrkeelan opened this issue Aug 14, 2012 · 3 comments
Open

Day reset when current year selected #14

mrkeelan opened this issue Aug 14, 2012 · 3 comments

Comments

@mrkeelan
Copy link

The day is reset when the current year is selected, and FutureDates is not on.
This is the code that does it:
// reset the day selection
$day.children(":first").attr("selected", "selected");

Is this necessary? It doesn't seem to be.

@ryantj
Copy link

ryantj commented Mar 1, 2013

I think it only does this to avoid picking a bad day for leap year. Meh

@khirasaki
Copy link

I encountered this issue when I put in "Apr" "16" and then hit '2' in the year field, which autocompleted to "2013". Because Apr 16, 2013 is after today, even though I was going to type '2005', the month/day get cleared out.

My workaround was to set futureDates: true, which for my application wasn't a problem.

@jefgodesky
Copy link

It seems to work for me if I remove the "reset the day selection" logic on line 166.

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

No branches or pull requests

4 participants