From d3ed66e0cd4b81f273c1bb8554786dcf973e0887 Mon Sep 17 00:00:00 2001 From: Andrew Date: Wed, 6 Aug 2014 14:34:00 -0600 Subject: [PATCH] fix(actionSheet): run $apply when closing actionSheet with back button --- js/angular/service/actionSheet.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/angular/service/actionSheet.js b/js/angular/service/actionSheet.js index bcf9d644a40..f69a7366deb 100644 --- a/js/angular/service/actionSheet.js +++ b/js/angular/service/actionSheet.js @@ -150,7 +150,9 @@ function($rootScope, $document, $compile, $animate, $timeout, $ionicTemplateLoad // registerBackButtonAction returns a callback to deregister the action scope.$deregisterBackButton = $ionicPlatform.registerBackButtonAction( - scope.cancel, + function() { + $timeout(scope.cancel); + }, PLATFORM_BACK_BUTTON_PRIORITY_ACTION_SHEET );