CalendarPicker
CalendarPicker copied to clipboard
Shifting one month back if scrollable and maxDate is current month
While investigating it I've found out two other bugs that have been addressed here https://github.com/stephy/CalendarPicker/pull/370.
But, I still haven't found my way to fix the original bug.
The original bug is reproducible by simply:
<CalendarPicker scrollable maxDate={new Date()} />
A workaround I've found is to change maxDate
to current month + 1, so it renders the next month and the shifting is gone.
I appreciate any guidance on how I can proceed on this fix.
@peacechen @tranjog any guidance is appreciated! ty