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
I followed instructions in documentation written for my React-Date-Picker version
I have checked if this bug is not already reported
Description
When I select the start date, example (24/10/2024), and then try to select the end date, the current month apprears is the current month (08 Augest). How can I show the month of start date selected (September) when click on end date?
Steps to reproduce
1 create 2 datePicker element first start date and the second one is end Date
2 now pass minDate={startDate}
3 now open the end Date Calendar it will be from current month instead of where start date selected
Expected behavior
end Date DatePicker calendar should open from there where start Date selected
Actual behavior
end date calendar open from current month after selecting start date instead of this it should open from where start date is selected
Additional information
Environment
Browser (if applicable):
React-Date-Picker version:10.5.1
React version:18.2.0
The text was updated successfully, but these errors were encountered:
NematAnsari
changed the title
on click on end date, show the current month calendar of start date
on click on end date, show the current month calendar
Aug 7, 2024
This is likely not a bug, as the calendar can be opened to a specific date by using the openToDate prop, as shown in the example-open-to-date:
openToDate={startDate}
Additionally, ensure that you’re using the selectsStart and selectsEnd props for the start and end date pickers, as demonstrated here: example-date-range
Before you start - checklist
Description
When I select the start date, example (24/10/2024), and then try to select the end date, the current month apprears is the current month (08 Augest). How can I show the month of start date selected (September) when click on end date?
Steps to reproduce
1 create 2 datePicker element first start date and the second one is end Date
2 now pass minDate={startDate}
3 now open the end Date Calendar it will be from current month instead of where start date selected
Expected behavior
end Date DatePicker calendar should open from there where start Date selected
Actual behavior
end date calendar open from current month after selecting start date instead of this it should open from where start date is selected
Additional information
Environment
The text was updated successfully, but these errors were encountered: