You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Press Enter to select the first date of the range.
Try to use the arrow keys to get to a second date.
Expected behavior
After hitting Enter on the first Date, which then becomes disabled, the selection should jump to the next selectable date and you should be able to use arrow keys to complete selection of the range.
If you are using disabled instead of min and it ends up disabling the day you've just selected with Enter, you would expect this same behavior where the active selection is moved to the next selectable date.
The text was updated successfully, but these errors were encountered:
Bug description
Using
min
breaks keyboard selection after selecting the first date of a range.This seems to be caused by the initial date of the range ending up disabled after hitting Enter.
Along that same line, if you use
disabled
instead ofmin
and the date you've just selected ends up disabled, it also breaks keyboard selection.To reproduce
https://codesandbox.io/s/react-daypicker-forked-3kd7lr?file=/src/App.tsx
Steps
Expected behavior
After hitting Enter on the first Date, which then becomes disabled, the selection should jump to the next selectable date and you should be able to use arrow keys to complete selection of the range.
If you are using
disabled
instead ofmin
and it ends up disabling the day you've just selected with Enter, you would expect this same behavior where the active selection is moved to the next selectable date.The text was updated successfully, but these errors were encountered: