stephy / CalendarPicker

CalendarPicker Component for React Native
787 stars 369 forks source link

Shifting one month back if scrollable and maxDate is current month #371

Open giorgiofellipe opened 3 months ago

giorgiofellipe commented 3 months ago

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.

giorgiofellipe commented 3 months ago

@peacechen @tranjog any guidance is appreciated! ty