You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the below code to initialize 2 date inputs. Showing month/year selectors. Second date input cannot have a date before the first input.
If a user selects Dec of whatever year (Dec 1, 2010 for example), the 2nd calendar YEAR dropdown changes to the next year (2011 in our example). When a user clicks a day on that calendar, it populates with input with the right date (2010) however it is confusing to the user as they would think they're choosing 2011 (and that there is NO way they can choose Dec 2010 for the 2nd date)
Not sure why, but line 506 (v1.2.3) for choosing what valid year select options compares min value with, new Date(i+1,-1,0). This makes a Date that is always Nov 30th of whatever year. Can someone enlighten me as to why -1 was chosen for the month here? Obviously any min value in Dec won't match the current year for the year selectors which I believe is wrong. I've pasted a patch below
Using the below code to initialize 2 date inputs. Showing month/year selectors. Second date input cannot have a date before the first input.
If a user selects Dec of whatever year (Dec 1, 2010 for example), the 2nd calendar YEAR dropdown changes to the next year (2011 in our example). When a user clicks a day on that calendar, it populates with input with the right date (2010) however it is confusing to the user as they would think they're choosing 2011 (and that there is NO way they can choose Dec 2010 for the 2nd date)
Try it out here
The text was updated successfully, but these errors were encountered: