We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26be439 commit 263f867Copy full SHA for 263f867
1 file changed
src/index.ts
@@ -28,7 +28,7 @@ export default class TabContainerElement extends HTMLElement {
28
const tabs = getTabs(this)
29
const currentIndex = tabs.indexOf(tabs.find(tab => tab.matches('[aria-selected="true"]'))!)
30
const [incrementKey, decrementKey] = getNavigationKeys(
31
- !!target.closest('[role="tablist"][aria-orientation="vertical"]')
+ !!(target.closest('[role="tablist"]')?.getAttribute('aria-orientation') === 'vertical')
32
)
33
34
if (event.code === incrementKey) {
0 commit comments