Skip to content

Commit

Permalink
fix(modal): prevent ghost clicks on open
Browse files Browse the repository at this point in the history
Closes #3569.
  • Loading branch information
tlancina committed Apr 21, 2015
1 parent f7db8c3 commit 83a4e2d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion js/angular/service/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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');

Expand Down

0 comments on commit 83a4e2d

Please sign in to comment.