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
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:
To Reproduce
Steps to reproduce the behavior:
Open calendar with a excluded month and selected is null
Use arrow keys to try and navigate to that excluded month
Excluded month should be pre selected (For invalid time value error select with Enter or Space and try to use the arrow keys again)
Select an available month with the keyboard
Open the calendar again
Try to navigate to the excluded month
Pre selection will stay the same
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
Desktop (please complete the following information):
OS: Windows 11
Browser: Firefox
Version: 125.0.2 (64-bit)
Storybook v7.5.3
The text was updated successfully, but these errors were encountered:
ryantanrk
changed the title
MonthYearPicker: Excluded Months are able to be navigated to with keyboard if there is no value selected
MonthYearPicker: Excluded Months are able to be navigated to with keyboard
May 22, 2024
ryantanrk
changed the title
MonthYearPicker: Excluded Months are able to be navigated to with keyboard
MonthYearPicker: Excluded/Disabled Months are able to be navigated to with keyboard
May 22, 2024
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:
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
Desktop (please complete the following information):
Storybook v7.5.3
The text was updated successfully, but these errors were encountered: