diff --git a/Classes/Core/Controllers/FLEXNavigationController.m b/Classes/Core/Controllers/FLEXNavigationController.m index eac5a91512..176e2b628d 100644 --- a/Classes/Core/Controllers/FLEXNavigationController.m +++ b/Classes/Core/Controllers/FLEXNavigationController.m @@ -96,7 +96,10 @@ - (void)pushViewController:(UIViewController *)viewController animated:(BOOL)ani - (void)dismissAnimated { // Tabs are only closed if the done button is pressed; this // allows you to leave a tab open by dragging down to dismiss - [FLEXTabList.sharedList closeTab:self]; + if ([self.presentingViewController isKindOfClass:[FLEXExplorerViewController class]]) { + [FLEXTabList.sharedList closeTab:self]; + } + [self.presentingViewController dismissViewControllerAnimated:YES completion:nil]; }