From 043cbf3a61af65cd534895be26038e43628a64ce Mon Sep 17 00:00:00 2001 From: Martin Yankov Date: Fri, 1 Mar 2019 11:18:07 +0200 Subject: [PATCH] fix(ios): disable default tab reselect behavior (#6968) --- tns-core-modules/ui/tab-view/tab-view.ios.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tns-core-modules/ui/tab-view/tab-view.ios.ts b/tns-core-modules/ui/tab-view/tab-view.ios.ts index 111c13fa6..75d5f6b34 100644 --- a/tns-core-modules/ui/tab-view/tab-view.ios.ts +++ b/tns-core-modules/ui/tab-view/tab-view.ios.ts @@ -90,6 +90,10 @@ class UITabBarControllerDelegateImpl extends NSObject implements UITabBarControl owner._handleTwoNavigationBars(backToMoreWillBeVisible); } + if ((tabBarController).selectedViewController === viewController) { + return false; + } + (tabBarController)._willSelectViewController = viewController; return true;