From 83a4e2d83d13a7491641f0b3545793bba32e98ec Mon Sep 17 00:00:00 2001 From: Tim Lancina Date: Tue, 21 Apr 2015 13:16:27 -0500 Subject: [PATCH] fix(modal): prevent ghost clicks on open Closes #3569. --- js/angular/service/modal.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/angular/service/modal.js b/js/angular/service/modal.js index a3870d5bbf..2be109d4b2 100644 --- a/js/angular/service/modal.js +++ b/js/angular/service/modal.js @@ -127,6 +127,10 @@ function($rootScope, $ionicBody, $compile, $timeout, $ionicPlatform, $ionicTempl return $$q.when(); } + // on iOS, clicks will sometimes bleed through/ghost click on underlying + // elements + $ionicClickBlock.show(600); + var modalEl = jqLite(self.modalEl); self.el.classList.remove('hide'); @@ -155,7 +159,6 @@ function($rootScope, $ionicBody, $compile, $timeout, $ionicPlatform, $ionicTempl ionic.on('resize', self._onWindowResize, window); } - modalEl.addClass('ng-enter active') .removeClass('ng-leave ng-leave-active');