Skip to content
This repository was archived by the owner on May 4, 2022. It is now read-only.

Commit e59ddbe

Browse files
committed
fix(modal): fix the wrong condition of modalStack
1 parent 1b7414f commit e59ddbe

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

js/angular/service/modal.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,11 +240,9 @@ function($rootScope, $ionicBody, $compile, $timeout, $ionicPlatform, $ionicTempl
240240
if (self.positionView) {
241241
ionic.off('resize', self._onWindowResize, window);
242242
}
243-
243+
244244
return $timeout(function() {
245-
if (!modalStack.length) {
246-
$ionicBody.removeClass(self.viewType + '-open');
247-
}
245+
$ionicBody.removeClass(self.viewType + '-open');
248246
self.el.classList.add('hide');
249247
}, self.hideDelay || 320);
250248
},

0 commit comments

Comments
 (0)