mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 18:17:31 +08:00
chore(react): fixing test and another method to tab nav
This commit is contained in:
@ -33,7 +33,8 @@ export class NavManager extends React.Component<NavManagerProps, NavContextState
|
||||
getStackManager: this.getStackManager.bind(this),
|
||||
getPageManager: this.getPageManager.bind(this),
|
||||
currentPath: this.props.location.pathname,
|
||||
registerIonPage: () => { return; } // overridden in View for each IonPage
|
||||
registerIonPage: () => { return; }, // overridden in View for each IonPage
|
||||
tabNavigate: this.tabNavigate.bind(this)
|
||||
};
|
||||
|
||||
this.listenUnregisterCallback = this.props.history.listen((location: HistoryLocation) => {
|
||||
@ -93,6 +94,10 @@ export class NavManager extends React.Component<NavManagerProps, NavContextState
|
||||
this.props.history.push(path, { direction });
|
||||
}
|
||||
|
||||
tabNavigate(url: string) {
|
||||
this.props.history.replace(url, { direction: 'back' });
|
||||
}
|
||||
|
||||
getPageManager() {
|
||||
return (children: any) => children;
|
||||
}
|
||||
|
Reference in New Issue
Block a user