diff --git a/packages/react/src/components/navigation/IonTabs.tsx b/packages/react/src/components/navigation/IonTabs.tsx index 151918622e..80e16820f6 100644 --- a/packages/react/src/components/navigation/IonTabs.tsx +++ b/packages/react/src/components/navigation/IonTabs.tsx @@ -16,9 +16,9 @@ class IonTabsElement extends HTMLElementSSR { } if (typeof (window as any) !== 'undefined' && window.customElements) { - const element = customElements.get('ion-tabs'); + const element = window.customElements.get('ion-tabs'); if (!element) { - customElements.define('ion-tabs', IonTabsElement); + window.customElements.define('ion-tabs', IonTabsElement); } }