Skip to content

Commit 6ed7253

Browse files
genesyadamdbradley
authored andcommitted
fix(modal): remove 'modal-open' from body
1 parent 08d7425 commit 6ed7253

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: js/angular/service/modal.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,9 @@ function($rootScope, $ionicBody, $compile, $timeout, $ionicPlatform, $ionicTempl
242242
}
243243

244244
return $timeout(function() {
245-
$ionicBody.removeClass(self.viewType + '-open');
245+
if (!modalStack.length) {
246+
$ionicBody.removeClass(self.viewType + '-open');
247+
}
246248
self.el.classList.add('hide');
247249
}, self.hideDelay || 320);
248250
},

0 commit comments

Comments
 (0)