Skip to content

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

@alighazleh

Description

@alighazleh

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions