stephy / CalendarPicker

CalendarPicker Component for React Native
802 stars 371 forks source link

minDate and maxDate Block select Month #284

Open khelifioussama opened 3 years ago

khelifioussama commented 3 years ago

When i am using minDate and maxDate , The Month have multiple bug it stuck when Select month is first time open Exemple : min date is in august 2017 and max date is in mai 2021 If I click in Select Month in 2021 I see ( Junauary - February - March - April - May ) and then I change the year to 2017 so i should see in month ( August - September - October - November - December ) but I just see the same months seen in 2021 , even if i go to 2020 I should see all the months but i am always stuck in those months any solution please

peacechen commented 3 years ago

Please use the sample app in this repo to recreate the issue and post the <CalendarStrip> code snippet here. https://github.com/stephy/CalendarPicker#sample-application

BohdanKasian commented 6 months ago

i have the same problem, but i set only maxDate={new Date()} it works if i use arrow to change month, but if i change year to 2023, and click "Select Month" i still see only 4 month

image