Skip to content

Commit d3ed66e

Browse files
committed
fix(actionSheet): run $apply when closing actionSheet with back button
1 parent 94a06db commit d3ed66e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: js/angular/service/actionSheet.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,9 @@ function($rootScope, $document, $compile, $animate, $timeout, $ionicTemplateLoad
150150

151151
// registerBackButtonAction returns a callback to deregister the action
152152
scope.$deregisterBackButton = $ionicPlatform.registerBackButtonAction(
153-
scope.cancel,
153+
function() {
154+
$timeout(scope.cancel);
155+
},
154156
PLATFORM_BACK_BUTTON_PRIORITY_ACTION_SHEET
155157
);
156158

0 commit comments

Comments
 (0)