diff --git a/js/angular/service/actionSheet.js b/js/angular/service/actionSheet.js index 17eabd26e67..867fe2e51b1 100644 --- a/js/angular/service/actionSheet.js +++ b/js/angular/service/actionSheet.js @@ -119,7 +119,11 @@ function($rootScope, $compile, $animate, $timeout, $ionicTemplateLoader, $ionicP scope.removed = true; sheetEl.removeClass('action-sheet-up'); - $ionicBody.removeClass('action-sheet-open'); + $timeout(function(){ + // wait to remove this due to a 300ms delay native + // click which would trigging whatever was underneath this + $ionicBody.removeClass('action-sheet-open'); + }, 400); scope.$deregisterBackButton(); stateChangeListenDone(); diff --git a/js/angular/service/popup.js b/js/angular/service/popup.js index 96adc248a85..3c3421be839 100644 --- a/js/angular/service/popup.js +++ b/js/angular/service/popup.js @@ -398,7 +398,11 @@ function($ionicTemplateLoader, $ionicBackdrop, $q, $timeout, $rootScope, $ionicB previousPopup.show(); } else { //Remove popup-open & backdrop if this is last popup - $ionicBody.removeClass('popup-open'); + $timeout(function(){ + // wait to remove this due to a 300ms delay native + // click which would trigging whatever was underneath this + $ionicBody.removeClass('popup-open'); + }, 400); $ionicBackdrop.release(); ($ionicPopup._backButtonActionDone || angular.noop)(); }