Describe the bug
When using the datepicker to drive a date range with selectsRange prop, the selected day of the month appears to be selected across all months.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Would expect that only the specific day that the user selected is highlighted in the UI.
Screenshots


Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
Came across this same issue. Looks like it's caused by keyboard navigation. Passing this prop in worked for me-
disabledKeyboardNavigation
I wouldn't recommend disabling keyboard navigation because it might interfere with accessibility. @wlblanchette You can solve the issue with CSS - give your react-datepicker a custom classname and then target the styles like this:
.react-datepicker__day--keyboard-selected {
background-color: transparent;
border-radius: unset;
outline: unset;
color: #000;
&:focus {
box-shadow: unset;
}
}
@ktonini Solution worked for my use case. https://github.com/Hacker0x01/react-datepicker/issues/2456#issuecomment-716547497
Most helpful comment
Came across this same issue. Looks like it's caused by keyboard navigation. Passing this prop in worked for me-
disabledKeyboardNavigation