birthdaypicker
birthdaypicker copied to clipboard
Day reset when current year selected
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.
I think it only does this to avoid picking a bad day for leap year. Meh
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.
It seems to work for me if I remove the "reset the day selection" logic on line 166.