@ionic/react 8.8.14-dev.11784122706.1f3c0c93 → 8.8.14-dev.11784222473.142aed23

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 CHANGED
@@ -1788,17 +1788,11 @@ class IonTabBarUnwrapped extends React.PureComponent {
1788
1788
  }
1789
1789
  }
1790
1790
  else {
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;
1791
+ if (this.props.onIonTabsWillChange) {
1792
+ this.props.onIonTabsWillChange(new CustomEvent('ionTabWillChange', { detail: { tab: e.detail.tab } }));
1796
1793
  }
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 } }));
1794
+ if (this.props.onIonTabsDidChange) {
1795
+ this.props.onIonTabsDidChange(new CustomEvent('ionTabDidChange', { detail: { tab: e.detail.tab } }));
1802
1796
  }
1803
1797
  if (hasRouterOutlet) {
1804
1798
  this.setActiveTabOnContext(e.detail.tab);