react-native-calendars icon indicating copy to clipboard operation
react-native-calendars copied to clipboard

ExpandableCalendar selected day automatically sets to first day of the week when scrolling back or forward

Open longuyen10119 opened this issue 1 year ago • 9 comments

Description

I'm current using Expandable Calendar and have this theme:

    selectedDayBackgroundColor: "yellow",
    selectedDayTextColor: "blue",
    // today
    todayTextColor: "yellow",

Screenshot 2023-07-13 at 3 40 23 PM

Expected Behavior

When scrolling back or forward, the first day of the week for some reason gets selected when nothing should be selected.

Observed Behavior

For context, the date when this issue is posted is July 13th (screenshot above) Screenshot 2023-07-13 at 3 41 57 PM

Environment

└── [email protected] └── [email protected] macOS using iOS simulator iphone14 iOS 16.1

longuyen10119 avatar Jul 13 '23 05:07 longuyen10119

Did you resolve this?

GaeCuure avatar Jul 24 '23 08:07 GaeCuure

Not yet. Do you have a solution?

longuyen10119 avatar Jul 24 '23 12:07 longuyen10119

Running into this issue as well--any hope of a fix?

wconover1 avatar Aug 08 '23 19:08 wconover1

Hi maybe this path helps you https://github.com/wix/react-native-calendars/issues/1937

theol93 avatar Oct 09 '23 08:10 theol93

Facing this issue as well, a fix would be appreciated.

hariharank6 avatar Oct 17 '23 12:10 hariharank6

It s ok for me but the thing is I have a min date set to Today and I can swipe left and the first day of the previous week would be selected 🤦‍♂️

elie-chaaban avatar Oct 18 '23 17:10 elie-chaaban

any solution to this issue?

CostasCF avatar Jan 30 '24 10:01 CostasCF

@longuyen10119 did you resolve this? I am facing the same issue

CostasCF avatar Jan 30 '24 10:01 CostasCF

It may not be what you need, but there is one trade-off to this issue: disable a week scroll disableWeekScroll={true}.

vukadinFE avatar Mar 16 '24 09:03 vukadinFE