diff --git a/js/angular/service/modal.js b/js/angular/service/modal.js index e9c54ad9dbd..d02cf402512 100644 --- a/js/angular/service/modal.js +++ b/js/angular/service/modal.js @@ -72,7 +72,8 @@ IonicModule '$ionicTemplateLoader', '$q', '$log', -function($rootScope, $ionicBody, $compile, $timeout, $ionicPlatform, $ionicTemplateLoader, $q, $log) { + '$ionicClickBlock', +function($rootScope, $ionicBody, $compile, $timeout, $ionicPlatform, $ionicTemplateLoader, $q, $log, $ionicClickBlock) { /** * @ngdoc controller @@ -184,6 +185,10 @@ function($rootScope, $ionicBody, $compile, $timeout, $ionicPlatform, $ionicTempl var self = this; var modalEl = jqLite(self.modalEl); + // on iOS, clicks will sometimes bleed through/ghost click on underlying + // elements + $ionicClickBlock.show(600); + self.el.classList.remove('active'); modalEl.addClass('ng-leave');