fix(ios): frame navigatingTo event (#10096)

This commit is contained in:
farfromrefuge
2022-11-18 17:21:03 +00:00
committed by GitHub
parent c957b487a8
commit 6148955335
2 changed files with 1 additions and 8 deletions

View File

@ -307,7 +307,7 @@ export class Frame extends FrameBase {
}
public _onNavigatingTo(backstackEntry: BackstackEntry, isBack: boolean) {
//
super._onNavigatingTo(backstackEntry, isBack);
}
}

View File

@ -118,13 +118,6 @@ class UIViewControllerImpl extends UIViewController {
}
const frame = this.navigationController ? (<any>this.navigationController).owner : null;
const newEntry = this[ENTRY];
// Don't raise event if currentPage was showing modal page.
if (!owner._presentedViewController && newEntry && (!frame || frame.currentPage !== owner)) {
const isBack = isBackNavigationTo(owner, newEntry);
owner.onNavigatingTo(newEntry.entry.context, isBack, newEntry.entry.bindingContext);
}
if (frame) {
if (!owner.parent) {