We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 98f5d77 + 13de837 commit e0a9011Copy full SHA for e0a9011
src/tab-container-element.ts
@@ -373,6 +373,9 @@ export class TabContainerElement extends HTMLElement {
373
const selectedTab = tabs[index]
374
const selectedPanel = panels[index]
375
376
+ if (!selectedTab) return
377
+ if (!selectedPanel) return
378
+
379
if (this.#setupComplete) {
380
const cancelled = !this.dispatchEvent(
381
new TabContainerChangeEvent('tab-container-change', {
0 commit comments