TabMenu: Accessibility issue in TabMenu with hidden tabs #3910
Labels
Component: Accessibility
Issue or pull request is related to WCAG or ARIA
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Describe the bug
You can't navigate between tabs with keyboard right and left arrow keys if there are tabs that have
visible: false
.The problem is that
findNextItem
method receives an array of tabs that does not include hidden tabs (this.$refs.tab
), but the index of the current tab is taken from an array of all tabs including the hidden ones (@keydown
receivesi
frommodel
).Reproducer
https://codesandbox.io/s/goofy-bell-vjc077
PrimeVue version
3.27.0
Vue version
3.x
Language
TypeScript
Build / Runtime
Vue CLI App
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
Tabs should be accessible with keyboard even if there are hidden tabs in the model.
The text was updated successfully, but these errors were encountered: