CalendarPicker icon indicating copy to clipboard operation
CalendarPicker copied to clipboard

Calendar reverts to current month when I select either start date or end date in a future month.

Open davidfeldt opened this issue 3 years ago • 4 comments

I've been using this library for a while now and I love it.

Currently refactoring an app to use RN 0.70 and having an issue with react-native-calendar-picker v7.1.2.

When I select a date in the future, the date is stored correctly and shows on the calendar, but the calendar view switches to the current month. (see attached screen grabs).

Simulator Screen Shot - iPhone 14 - 2022-10-04 at 11 29 49 Simulator Screen Shot - iPhone 14 - 2022-10-04 at 11 30 02 Simulator Screen Shot - iPhone 14 - 2022-10-04 at 11 30 05

davidfeldt avatar Oct 04 '22 15:10 davidfeldt

Good to hear that you've been using this library successfully. The issue you described sounds like a state bug. Are you passing in the prop selectedStartDate ? If not, try passing that value in from the user's selection. I don't have resources to debug this unfortunately. Please submit a PR if you find a bug. Use the sample app to recreate it and fix the CalendarPicker source files.

peacechen avatar Oct 05 '22 13:10 peacechen

Thanks for the response. Yes, I'm passing selectedStartDate. I'll dig in myself.


From: Peace @.> Sent: Wednesday, October 5, 2022 9:59 AM To: stephy/CalendarPicker @.> Cc: David Feldt @.>; Author @.> Subject: Re: [stephy/CalendarPicker] Calendar reverts to current month when I select either start date or end date in a future month. (Issue #328)

Good to hear that you've been using this library successfully. The issue you described sounds like a state bug. Are you passing in the prop selectedStartDate ? If not, try passing that value in from the user's selection. I don't have resources to debug this unfortunately. Please submit a PR if you find a bug. Use the sample apphttps://github.com/stephy/CalendarPicker#sample-application to recreate it and fix the CalendarPicker source files.

— Reply to this email directly, view it on GitHubhttps://github.com/stephy/CalendarPicker/issues/328#issuecomment-1268476116, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAESF4IFOQOW34XZZ5IK6ITWBWCSTANCNFSM6AAAAAAQ4WHHKY. You are receiving this because you authored the thread.Message ID: @.***>

davidfeldt avatar Oct 11 '22 06:10 davidfeldt

Hi , any solution found for this issue?

dennis-Softfruit avatar May 06 '24 07:05 dennis-Softfruit

Try 8.0.3 which fixed a bug with selected date. See #376

peacechen avatar May 06 '24 14:05 peacechen