diff --git a/js/angular/service/modal.js b/js/angular/service/modal.js index d35a71dc2..9e6e769b7 100644 --- a/js/angular/service/modal.js +++ b/js/angular/service/modal.js @@ -240,11 +240,9 @@ function($rootScope, $ionicBody, $compile, $timeout, $ionicPlatform, $ionicTempl if (self.positionView) { ionic.off('resize', self._onWindowResize, window); } - + return $timeout(function() { - if (!modalStack.length) { - $ionicBody.removeClass(self.viewType + '-open'); - } + $ionicBody.removeClass(self.viewType + '-open'); self.el.classList.add('hide'); }, self.hideDelay || 320); },