mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
fix(ios): allow navigationFrom event for deep navigation within modal frame (#9187)
This commit is contained in:
@ -214,7 +214,7 @@ class UIViewControllerImpl extends UIViewController {
|
|||||||
// or because we are closing a modal page,
|
// or because we are closing a modal page,
|
||||||
// or because we are in tab and another controller is selected.
|
// or because we are in tab and another controller is selected.
|
||||||
const tab = this.tabBarController;
|
const tab = this.tabBarController;
|
||||||
if (owner.onNavigatingFrom && !owner._presentedViewController && !this.presentingViewController && frame && frame.currentPage === owner) {
|
if (owner.onNavigatingFrom && !owner._presentedViewController && frame && (!this.presentingViewController || frame.backStack.length > 0) && frame.currentPage === owner) {
|
||||||
const willSelectViewController = tab && (<any>tab)._willSelectViewController;
|
const willSelectViewController = tab && (<any>tab)._willSelectViewController;
|
||||||
if (!willSelectViewController || willSelectViewController === tab.selectedViewController) {
|
if (!willSelectViewController || willSelectViewController === tab.selectedViewController) {
|
||||||
const isBack = isBackNavigationFrom(this, owner);
|
const isBack = isBackNavigationFrom(this, owner);
|
||||||
|
Reference in New Issue
Block a user