Skip to content

keyboard-selected is applied incorrectly. #5490

@kibasaur

Description

@kibasaur

Describe the bug
The class .react-datepicker__day--keyboard-selected is applied to a selected day, regardless of month. This makes it so that all days gets the class .react-datepicker__day--in-selecting-range.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Datepicker examples
  2. Find the first or any Date Range example
  3. Select a range of say a week in the current month.
  4. Go back or forward one or several months

Expected behavior
Days that are not supposed to be highlighted (days outside of the range) will be highlighted. if March 13th is selected, then if you start hovering around any other month, the 13th that month will have the css class .react-datepicker__day--keyboard-selected, making all of the days between have the in-selecting-range class that enables the highlight

Screenshots

Image
Image
Image

Desktop (please complete the following information):

  • Browser Mozilla Firefox

  • Device: Thinkpad laptop

  • OS: Windows 11

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