Skip to content

Date range selection end is automatically set based on date range selection start #5561

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

Open
alighazleh opened this issue Apr 10, 2025 · 0 comments

Comments

@alighazleh
Copy link

Describe the bug
When selecting a start date in a ranged selection then navigating to a different month, the class "react-datepicker__day--selecting-range-end" is given to the same day in the following months. This causes the date selection range to always be highlighted, even when no end date has been selected.

To Reproduce

  • Select a start date
  • Go to another month

Expected behavior
The "react-datepicker__day--selecting-range-end" should not be applied until the date is hovered.

Screenshots
Image
Image

Desktop (please complete the following information):

  • OS: windows 11
  • Browser: chrome
  • Version: 135.0.7049.84
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant