Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

on click on end date, show the current month calendar #669

Open
2 tasks done
NematAnsari opened this issue Aug 7, 2024 · 3 comments
Open
2 tasks done

on click on end date, show the current month calendar #669

NematAnsari opened this issue Aug 7, 2024 · 3 comments
Labels
bug Something isn't working stale

Comments

@NematAnsari
Copy link

Before you start - checklist

  • 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?

Screenshot_2
Screenshot_1

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

Screenshot_1
Screenshot_2

Environment

  • Browser (if applicable):
  • React-Date-Picker version:10.5.1
  • React version:18.2.0
@NematAnsari NematAnsari added the bug Something isn't working label Aug 7, 2024
@NematAnsari 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
@sm3sher
Copy link

sm3sher commented Sep 22, 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

@NematAnsari
Copy link
Author

@sm3sher This kind of prop is not available in this plugin and it is available in different plugin which is react-datepicker

Copy link
Contributor

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 14 days.

@github-actions github-actions bot added the stale label Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

2 participants