From e59ddbe73cbc08ce6601534d0b602387ab77c49f Mon Sep 17 00:00:00 2001 From: aleen42 Date: Tue, 10 Oct 2017 17:15:03 +0800 Subject: [PATCH] fix(modal): fix the wrong condition of modalStack --- js/angular/service/modal.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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); },