md-pickers
md-pickers copied to clipboard
List of year is not always loaded properly
The year picker seems to use an infinite scrolling mechanism which breaks in some situation which prevent to select year in the far further.
Steps to reproduce:
- Open a date picker (without min/max date defined)
- Click on the Year on the left
- The list of year is displayed focused on current year: 2019
- Drag the scrollbar cursor all the way down
Actual result:
- The list of year does not go further than 2024
Workaround Scroll back up a little then scroll down again using either the mouse wheel or the scrollbar down arrow button. In such case the list of year is extended incrementally with new years in the future.
Additionally clicking the Year on the left again while the list of year is displayed seems to scroll the list of year all the way down and reproduce the same issue.
Thanks for the comprehensive issue description. I'm quite busy at the moment so I won't have time to fix it myself. But I'm happy to review a PR.