Calendar: keyboard support bug when there is a disable date next to the focused date #3032
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
Hello,
Calendar keyboard support works great so far, but there is an issue when there is disable days/date.
For example, when the key arrow is clicked and there is a disable date next to the focused element, it will move to next month.
Instead, it should skip the disable date and move to the next focusable date from the row otherwise it's pretty difficult to select the specific date for those who use the keyboard.
This issue is happening because onDateCellKeydown function in Calendar component, is checking the next date is focusable instead of checking the first/second half of the focused date.
Reproducer
https://codesandbox.io/s/suspicious-grass-isicm2?file=/src/App.vue
PrimeVue version
3.16.2
Vue version
3.x
Language
ES6
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
Expected behavior
When the key arrow is clicked and if there is a disable date next to the focused date, it should skip the disable date and move to the next focusable date from the row and if there is no focusable item, it should move to next/previous month.
The text was updated successfully, but these errors were encountered: