birthdaypicker icon indicating copy to clipboard operation
birthdaypicker copied to clipboard

Day reset when current year selected

Open mrkeelan opened this issue 12 years ago • 3 comments

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.

mrkeelan avatar Aug 14 '12 21:08 mrkeelan

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

ryantj avatar Mar 01 '13 17:03 ryantj

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.

khirasaki avatar Mar 13 '13 01:03 khirasaki

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

jefgodesky avatar Oct 11 '13 16:10 jefgodesky