Closed ryantanrk closed 1 month ago
I have made a pull request to address the error being thrown when excluded month is selected with keyboard #4732
POC for skipping excluded dates https://github.com/ryantanrk/react-datepicker/pull/1
Since the pull request has been merged, I will close this issue, thanks
Describe the bug When a month year picker has excluded dates
excludeDates
, without any value selected, the date picker is able to navigate to the excluded month, but with value selected, we cannot navigate to the excluded month.When that excluded month is selected, it throws an invalid time value error:![image](https://github.com/Hacker0x01/react-datepicker/assets/49902829/6dee99cb-4178-43a5-89e5-ff4351fec349)
To Reproduce Steps to reproduce the behavior:
selected
isnull
Expected behavior Consistent behavior when there is a value selected and when there is no value selected. I suggest the date picker should skip over the excluded date when navigated to with the keyboard
Screenshots![image](https://github.com/Hacker0x01/react-datepicker/assets/49902829/24ff89d9-3604-4c12-b480-134d96aa26af)
Desktop (please complete the following information):
Storybook v7.5.3