Skip to content

Commit 72afa63

Browse files
committed
fix merge error
1 parent 7eb3298 commit 72afa63

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/tab-container-element.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export class TabContainerElement extends HTMLElement {
101101
#handleKeydown(event: KeyboardEvent) {
102102
const tab = (event.target as HTMLElement)?.closest?.('[role="tab"]')
103103
if (!tab) return
104-
const tabs = getTabs(this)
104+
const tabs = this.#tabs
105105
if (!tabs.includes(tab as HTMLElement)) return
106106

107107
const currentIndex = tabs.indexOf(tabs.find(e => e.matches('[aria-selected="true"]'))!)
@@ -129,7 +129,7 @@ export class TabContainerElement extends HTMLElement {
129129
#handleClick(event: MouseEvent) {
130130
const tab = (event.target as HTMLElement)?.closest?.('[role=tab]')
131131
if (!tab) return
132-
const tabs = getTabs(this)
132+
const tabs = this.#tabs
133133
const index = tabs.indexOf(tab as HTMLElement)
134134
if (index >= 0) this.selectTab(index)
135135
}

0 commit comments

Comments
 (0)