mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
fix(react): using autonomous web component for safari support, closes #21803
* fix(react): using autonomous web component for safari support, closes #21803 * taking out extends
This commit is contained in:
@ -8,14 +8,17 @@ import { IonRouterOutlet } from '../IonRouterOutlet';
|
||||
import { IonTabBar } from './IonTabBar';
|
||||
import { IonTabsContext, IonTabsContextState } from './IonTabsContext';
|
||||
|
||||
class IonTabsElement extends HTMLDivElement {
|
||||
class IonTabsElement extends HTMLElement {
|
||||
constructor() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
|
||||
if (window && window.customElements) {
|
||||
customElements.define('ion-tabs', IonTabsElement, { extends: 'div' });
|
||||
const element = customElements.get('ion-tabs');
|
||||
if (!element) {
|
||||
customElements.define('ion-tabs', IonTabsElement);
|
||||
}
|
||||
}
|
||||
|
||||
declare global {
|
||||
|
Reference in New Issue
Block a user