Closed Roka20012 closed 4 years ago
Thanks for reporting this bug. If you have time to debug this, please submit a PR and I'll merge right away.
I am facing this error too.
This may be the problem in YearsHeader.js:
const disablePrevious = restrictNavigation && (minDate.year() >= year);
const disableNext = restrictNavigation && (maxDate.year() <= year);
https://github.com/stephy/CalendarPicker/blob/master/CalendarPicker/YearsHeader.js#L31
It should check for valid minDate and maxDate, e.g.
const disableNext = restrictNavigation && maxDate && (maxDate.year() <= year);
Please test that and submit a PR if it works.
Hey guys 👋
When I trying to select a year without providing
maxDate
prop I am getting this error. So I needrestrictMonthNavigation
for past dates but not for future datesQuestion ❓
Error 🚨
Code 👨💻
Video 🎬