From 53b92ad83a916f4a159fa544521c82dec7e08312 Mon Sep 17 00:00:00 2001 From: Hristo Hristov Date: Thu, 26 Oct 2017 11:58:19 +0300 Subject: [PATCH] Fix broken TS --- tns-core-modules/ui/page/page.ios.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tns-core-modules/ui/page/page.ios.ts b/tns-core-modules/ui/page/page.ios.ts index b22858e9f..c36efccbc 100644 --- a/tns-core-modules/ui/page/page.ios.ts +++ b/tns-core-modules/ui/page/page.ios.ts @@ -195,10 +195,11 @@ class UIViewControllerImpl extends UIViewController { const tab = this.tabBarController; if (!owner._presentedViewController && frame && frame.currentPage === owner) { const willSelectViewController = tab && (tab)._willSelectViewController; - if (!willSelectViewController + if (!willSelectViewController || willSelectViewController === tab.selectedViewController) { - let isBack = isBackNavigationFrom(this, owner); - owner.onNavigatingFrom(isBack); + let isBack = isBackNavigationFrom(this, owner); + owner.onNavigatingFrom(isBack); + } } //https://github.com/NativeScript/NativeScript/issues/1201