mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
chore(react): fixing test and another method to tab nav
This commit is contained in:
@ -70,7 +70,7 @@ const IonTabBarUnwrapped = /*@__PURE__*/(() => class extends React.Component<Pro
|
||||
if (this.state.activeTab === e.detail.tab) {
|
||||
const originalHref = this.state.tabs[e.detail.tab].originalHref;
|
||||
if (this.context.hasIonicRouter()) {
|
||||
this.context.goBack(originalHref);
|
||||
this.context.tabNavigate(originalHref);
|
||||
} else {
|
||||
this.context.navigate(originalHref, 'back');
|
||||
}
|
||||
|
Reference in New Issue
Block a user