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.
1 parent 2f856f1 commit 13de837Copy full SHA for 13de837
src/tab-container-element.ts
@@ -362,6 +362,9 @@ export class TabContainerElement extends HTMLElement {
362
const selectedTab = tabs[index]
363
const selectedPanel = panels[index]
364
365
+ if (!selectedTab) return
366
+ if (!selectedPanel) return
367
+
368
if (this.#setupComplete) {
369
const cancelled = !this.dispatchEvent(
370
new TabContainerChangeEvent('tab-container-change', {
0 commit comments