Skip to content

Commit 263f867

Browse files
seanpdoylejfuchs
andauthored
Update src/index.ts
Co-authored-by: Jonathan Fuchs <21195+jfuchs@users.noreply.github.com>
1 parent 26be439 commit 263f867

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default class TabContainerElement extends HTMLElement {
2828
const tabs = getTabs(this)
2929
const currentIndex = tabs.indexOf(tabs.find(tab => tab.matches('[aria-selected="true"]'))!)
3030
const [incrementKey, decrementKey] = getNavigationKeys(
31-
!!target.closest('[role="tablist"][aria-orientation="vertical"]')
31+
!!(target.closest('[role="tablist"]')?.getAttribute('aria-orientation') === 'vertical')
3232
)
3333

3434
if (event.code === incrementKey) {

0 commit comments

Comments
 (0)