@ionic/react 8.8.14-nightly.20260708 → 8.8.14-nightly.20260714
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 +10 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1788,11 +1788,17 @@ class IonTabBarUnwrapped extends React.PureComponent {
|
|
|
1788
1788
|
}
|
|
1789
1789
|
}
|
|
1790
1790
|
else {
|
|
1791
|
-
|
|
1792
|
-
|
|
1791
|
+
let onWillChange = this.props.onIonTabsWillChange;
|
|
1792
|
+
let onDidChange = this.props.onIonTabsDidChange;
|
|
1793
|
+
if (this.props.tabsContext) {
|
|
1794
|
+
onWillChange = this.props.tabsContext?.tabBarProps.onIonTabsWillChange ?? this.props.onIonTabsWillChange;
|
|
1795
|
+
onDidChange = this.props.tabsContext?.tabBarProps.onIonTabsDidChange ?? this.props.onIonTabsDidChange;
|
|
1793
1796
|
}
|
|
1794
|
-
if (
|
|
1795
|
-
|
|
1797
|
+
if (onWillChange) {
|
|
1798
|
+
onWillChange(new CustomEvent('ionTabWillChange', { detail: { tab: e.detail.tab } }));
|
|
1799
|
+
}
|
|
1800
|
+
if (onDidChange) {
|
|
1801
|
+
onDidChange(new CustomEvent('ionTabDidChange', { detail: { tab: e.detail.tab } }));
|
|
1796
1802
|
}
|
|
1797
1803
|
if (hasRouterOutlet) {
|
|
1798
1804
|
this.setActiveTabOnContext(e.detail.tab);
|