Open KristoferKwan opened 2 years ago
+1
I am facing the same issue. While added scrollable prop dates are jumping. Does it have any solution?
I had the same issue too. It appears that within the Scroller.js file there is logic that tried to override the scrolling in cases the selected day or marked days are used. I'm using v2.2.5 and it is on line 96-98. Commenting this out works around the issue. Not ideal, but done > perfect.
if (selectedDate !== prevProps.renderDayParams.selectedDate) {
this.scrollToDate(selectedDate);
}
As the title suggests, setting scrollable to true causes the calendar to jump when certain calendar dates are chosen (ie, if I choose anything under February 10th, 2021, I am jumped to October 2021 on the calendar strip). I am additionally thrown the following error by my compiler:
When I remove scrollable as an attribute, the error goes away (although I can no longer scroll). I'm thinking that this is a race condition issue due to the above error. Is it possible for me to workaround this bug while still having scrollable functionality on the calendar strip?
My calendar settings: