Is it possible to make the left and right calendars (selectRange) in the DatePicker move independently? #4159
Unanswered
pavluha2dva8
asked this question in
Q&A
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a date range picker, and the problem is when I change the month calendars are synchronized to show consecutive months.
<DatePicker
renderCustomHeader={(headerProps) => <DatePickerHeader {...headerProps} />}
disabledKeyboardNavigation
onChange={onChange}
startDate={startDate}
endDate={endDate}
maxDate={new Date()}
selectsRange
inline
monthsShown={2}
calendarClassName="custom-datepicker"
renderDayContents={renderDayContents}
/>
Is there any way to separate them but keep selectRange logic?
eg left(Dec 2022) - right (Feb 2023). But if left month & year === right month & year, the right month should be left month + 1
Beta Was this translation helpful? Give feedback.
All reactions