mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(actionSheet): run $apply when closing actionSheet with back button
This commit is contained in:
4
js/angular/service/actionSheet.js
vendored
4
js/angular/service/actionSheet.js
vendored
@@ -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
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user