React-datepicker: Year dropdown scroll defaults to max value

Created on 2 Dec 2017  路  5Comments  路  Source: Hacker0x01/react-datepicker

I'm using the YearDropdown function on the datepicker but when I click it, the dropdown will always start at the top(max year). Is there a way to set the default value of the dropdown to the current year?

How it opens now
image

How I want it to open
image

wontfix

Most helpful comment

@lmichailian Nope.. I'm using another datepicker now

All 5 comments

@Bobvantpadje You resolved this ?

@Hacker0x01 any hint ?

@lmichailian Nope.. I'm using another datepicker now

@Bobvantpadje @lmichailian I used maxDate={moment()}

Scroll position of the year picker is really not user friendly now ... 馃憥 I'm facing the same issue.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings