mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-15 17:42:15 +08:00
feat(back-button): add 'backButtonDefaultHref' property to Ionic Config (#20491)
closes #19305 Co-authored-by: Brandy Carney <brandy@ionic.io>
This commit is contained in:
@ -448,6 +448,9 @@ export class RouteManager extends React.Component<RouteManagerProps, RouteManage
|
||||
}
|
||||
|
||||
navigateBack(defaultHref?: string) {
|
||||
const config = getConfig();
|
||||
defaultHref = defaultHref ? defaultHref : config && config.get('backButtonDefaultHref');
|
||||
|
||||
const { view: leavingView } = this.state.viewStacks.findViewInfoById(this.activeIonPageId);
|
||||
if (leavingView) {
|
||||
if (leavingView.id === leavingView.prevId) {
|
||||
|
Reference in New Issue
Block a user