You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a problem with the height property, quick fix: remove the height prop
<InfiniteCalendar
Component={withMultipleDates(Calendar)}
selected={selectedCalendarDates}
width={'100%'}
interpolateSelection={defaultMultipleDateInterpolation}
onSelect={updateSelectedCalendarDates}
minDate={new Date()} // Minimum selectable date is today
min={new Date()} // Minimum date the calendar can be scrolled to is today
/>
Did you guys solve this? I tracked it down to the onSelect={updateSelectedCalendarDates}. Since it updates the state it then rerenders the component. I could understand that if you have the state in selected. But I tried with different statets and it still rerenders. Any update or fix?
When using multiple dates functionality, the calendar resets to the zoom to focus on the first selected date on a re-render.
I think most users would expect the scroll to remain unchanged. Is there a way to use the
InfiniteCalendar
API to avoid this?See this CodeSandbox
Full code
The text was updated successfully, but these errors were encountered: