@ionic/react 8.3.1-dev.11726088593.194bcb8e → 8.3.1-dev.11726089748.1641303c
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1963,7 +1963,7 @@ class IonTabBarUnwrapped extends React.PureComponent {
|
|
|
1963
1963
|
};
|
|
1964
1964
|
}
|
|
1965
1965
|
onTabButtonClick(e, onClickFn) {
|
|
1966
|
-
var _a;
|
|
1966
|
+
var _a, _b;
|
|
1967
1967
|
const tappedTab = this.state.tabs[e.detail.tab];
|
|
1968
1968
|
const originalHref = tappedTab.originalHref;
|
|
1969
1969
|
/**
|
|
@@ -1994,8 +1994,10 @@ class IonTabBarUnwrapped extends React.PureComponent {
|
|
|
1994
1994
|
if (this.props.onIonTabsDidChange) {
|
|
1995
1995
|
this.props.onIonTabsDidChange(new CustomEvent('ionTabDidChange', { detail: { tab: e.detail.tab } }));
|
|
1996
1996
|
}
|
|
1997
|
-
this.
|
|
1998
|
-
|
|
1997
|
+
if ((_b = this.props.routerOutletRef) === null || _b === void 0 ? void 0 : _b.current) {
|
|
1998
|
+
this.setActiveTabOnContext(e.detail.tab);
|
|
1999
|
+
this.context.changeTab(e.detail.tab, currentHref, e.detail.routeOptions);
|
|
2000
|
+
}
|
|
1999
2001
|
}
|
|
2000
2002
|
}
|
|
2001
2003
|
renderTabButton(activeTab) {
|