File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments