Ionic Modal hardwareBackButtonClose


#1

Hello,

Since I do not see any thread about this I’m not sure if it’s a bug or if I’m doing it wrong but hardwareBackButtonClose does not work on my version ( nightly for ionic, android 4.3)

Can anyone close a modal with the back button, or is something wrong?

Thanks


#2

Hey @Apavillet - can you add the code that is calling the function? It will be easier for me to see if there is something that needs to be changed with your code.


#3

Hello @drew, of course here it is but as you can see not much to see it’s really a simple modal done ( I think ) according to the doc :

$ionicModal.fromTemplateUrl('templates/modal/order.html', {
scope: $scope
).then(function(modal) {
$scope.modal = modal;
});
$scope.closeOrderModal = function() {
$scope.modal.hide();
};
$scope.orderModal = function() {
$scope.modal.show();
};

#4

Same issue, with Android4.3 and ionic 1.0.0beta13. hardwareBackButtonClose not works