diff --git a/js/angular/service/modal.js b/js/angular/service/modal.js index 08d0359013d..c709bd1c5d1 100644 --- a/js/angular/service/modal.js +++ b/js/angular/service/modal.js @@ -242,7 +242,9 @@ function($rootScope, $ionicBody, $compile, $timeout, $ionicPlatform, $ionicTempl } return $timeout(function() { - $ionicBody.removeClass(self.viewType + '-open'); + if (!modalStack.length) { + $ionicBody.removeClass(self.viewType + '-open'); + } self.el.classList.add('hide'); }, self.hideDelay || 320); },