mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
remove body.popup-open w/ timeout
This commit is contained in:
4
js/ext/angular/src/service/ionicPopup.js
vendored
4
js/ext/angular/src/service/ionicPopup.js
vendored
@@ -207,7 +207,9 @@ angular.module('ionic.service.popup', ['ionic.service.templateLoad'])
|
||||
// Remove the backdrop element
|
||||
var removeBackdrop = function() {
|
||||
backdropEl.remove();
|
||||
$document[0].body.classList.remove('popup-open');
|
||||
$timeout(function(){
|
||||
$document[0].body.classList.remove('popup-open');
|
||||
}, 300);
|
||||
};
|
||||
|
||||
// Push the new popup onto the stack with the given data and scope.
|
||||
|
||||
Reference in New Issue
Block a user