diff --git a/js/angular/service/modal.js b/js/angular/service/modal.js index 6f58802beac..d1de50bc1cb 100644 --- a/js/angular/service/modal.js +++ b/js/angular/service/modal.js @@ -94,7 +94,10 @@ function($rootScope, $document, $compile, $timeout, $ionicPlatform, $ionicTempla var modalEl = angular.element(self.modalEl); self.el.classList.remove('hide'); - $document[0].body.classList.add('modal-open'); + $timeout(function(){ + $document[0].body.classList.add('modal-open'); + }, 400) + if(!self.el.parentElement) { modalEl.addClass(self.animation); diff --git a/test/html/modal.html b/test/html/modal.html index 062a0a4743e..4b7ee0963f1 100644 --- a/test/html/modal.html +++ b/test/html/modal.html @@ -40,6 +40,7 @@