Skip to content

Commit

Permalink
fix(actionSheet): run $apply when closing actionSheet with back button
Browse files Browse the repository at this point in the history
  • Loading branch information
ajoslin committed Aug 6, 2014
1 parent 94a06db commit d3ed66e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/angular/service/actionSheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
);

Expand Down

0 comments on commit d3ed66e

Please sign in to comment.