@@ -123,7 +123,7 @@ export class TabContainerElement extends HTMLElement {
123123 }
124124 }
125125
126- #setup = false
126+ #setupComplete = false
127127 #internals! : ElementInternals | null
128128 connectedCallback ( ) : void {
129129 this . #internals ||= this . attachInternals ? this . attachInternals ( ) : null
@@ -158,7 +158,7 @@ export class TabContainerElement extends HTMLElement {
158158 0 ,
159159 ) ,
160160 )
161- this . #setup = true
161+ this . #setupComplete = true
162162 }
163163
164164 attributeChangedCallback ( name : string ) {
@@ -210,7 +210,7 @@ export class TabContainerElement extends HTMLElement {
210210 }
211211
212212 selectTab ( index : number ) : void {
213- if ( ! this . #setup ) {
213+ if ( ! this . #setupComplete ) {
214214 const tabListSlot = this . #tabListSlot
215215 const customTabList = this . querySelector ( '[role=tablist]' )
216216 if ( customTabList && customTabList . closest ( this . tagName ) === this ) {
@@ -273,7 +273,7 @@ export class TabContainerElement extends HTMLElement {
273273 const selectedTab = tabs [ index ]
274274 const selectedPanel = panels [ index ]
275275
276- if ( this . #setup ) {
276+ if ( this . #setupComplete ) {
277277 const cancelled = ! this . dispatchEvent (
278278 new TabContainerChangeEvent ( 'tab-container-change' , {
279279 bubbles : true ,
@@ -300,7 +300,7 @@ export class TabContainerElement extends HTMLElement {
300300 this . #panelSlot. assign ( selectedPanel )
301301 selectedPanel . hidden = false
302302
303- if ( this . #setup ) {
303+ if ( this . #setupComplete ) {
304304 selectedTab . focus ( )
305305 this . dispatchEvent (
306306 new TabContainerChangeEvent ( 'tab-container-changed' , {
0 commit comments