@ionic/react 8.2.8-dev.11724280606.1a8c11d4 → 8.2.8-dev.11724361569.1dd52246
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 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1499,6 +1499,11 @@ class IonTabBarUnwrapped extends React.PureComponent {
|
|
|
1499
1499
|
var _a;
|
|
1500
1500
|
const tappedTab = this.state.tabs[e.detail.tab];
|
|
1501
1501
|
const originalHref = tappedTab.originalHref;
|
|
1502
|
+
/**
|
|
1503
|
+
* If the router outlet is not defined, then the tabs is being used
|
|
1504
|
+
* as a basic tab navigation without the router. In this case, we
|
|
1505
|
+
* don't want to update the href else the URL will change.
|
|
1506
|
+
*/
|
|
1502
1507
|
const currentHref = ((_a = this.props.routerOutletRef) === null || _a === void 0 ? void 0 : _a.current) ? e.detail.href : '';
|
|
1503
1508
|
const { activeTab: prevActiveTab } = this.state;
|
|
1504
1509
|
if (onClickFn) {
|