fix(actionSheet): run $apply when closing actionSheet with back button

This commit is contained in:
Andrew
2014-08-06 14:34:00 -06:00
parent 94a06dbdc2
commit d3ed66e0cd

View File

@@ -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
);