Year dropdown navigation butons are empty and scroll issue
Author: mpenney99Created Sep 30, 2026Updated Sep 30, 2026
Describe the bug
The buttons to navigate through previous and next years are empty. The view also focuses on the current year after clicking.
See the example here: https://reactdatepicker.com/#example-year-dropdown
To Reproduce Steps to reproduce the behavior:
- Create a DatePicker with
showYearDropdown={true} - Click the calendar to open it
- Click the down arrow next to the current year
- Scroll to the bottom of the dropdown
- There is an empty space where the nav button should be
- Click the empty space
- The view scrolls back to the current year
Expected behavior An arrow or other visual indication should be present.
After clicking the button, the scrollbar should stay where it is so the user doesn't have to scroll to the bottom again.
Screenshots
Desktop (please complete the following information):
- OS: Windows
- Browser: Chrome, Firefox
- Version: Chrome - 154.0.8037.58, Firefox - 156.0.1
Additional context Add any other context about the problem here.
Source: Hacker0x01/react-datepicker