Skip to content

Commit 46a1999

Browse files
committed
remove boolean coercion
1 parent a485e7e commit 46a1999

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
@@ -27,7 +27,7 @@ export default class TabContainerElement extends HTMLElement {
2727
const tabs = getTabs(this)
2828
const currentIndex = tabs.indexOf(tabs.find(tab => tab.matches('[aria-selected="true"]'))!)
2929
const [incrementKey, decrementKey] = getNavigationKeys(
30-
!!(target.closest('[role="tablist"]')?.getAttribute('aria-orientation') === 'vertical')
30+
target.closest('[role="tablist"]')?.getAttribute('aria-orientation') === 'vertical'
3131
)
3232

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

0 commit comments

Comments
 (0)