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: 2 comments
-
Beta Was this translation helpful? Give feedback.
0 replies
-
I am too looking for something like this.For example, when selecting a date range that spans more than two months or even a year, it is necessary to have independent month and year dropdowns for each calendar. This allows users to easily navigate and select dates that are far apart without affecting the other calendar. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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