Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Issue] Year View Navigator on Calendar Displays Extreme Years (#158)
* Prevent year navigation beyond available data range in calendar - Added logic in `changePeriod` function to restrict year navigation within the bounds of available calendar data. - Defined `maxYear` and `minYear` based on the calendar data's start and end dates. - Ensured that users cannot select a year beyond the maximum or below the minimum year available in the calendar data. * Changed to 'auto' to disable smooth scrolling for better user experience * Restored smooth scrolling, and added code to simply not scroll to the next year or previous year if newYear > maxYear || newYear < minYear is true
- Loading branch information