Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49186

Bug? close/hide modal on Android back button not working

$
0
0

@MCalleAlegra wrote:

According to the documentation (http://ionicframework.com/docs/api/controller/ionicModal/), the default behaviour is to close the current modal on back button. But it's not closing anything, instead, it performs the action of the main view, go back.

{boolean=} hardwareBackButtonClose: Whether the modal can be closed using the hardware back button on Android and similar devices. Default: true.

Here is my code when I initialize the modal:

$ionicModal.fromTemplateUrl('app/components/contacts/views/contacts.selectModal.html', {
    scope: $scope,
    animation: 'slide-in-up',
    hardwareBackButtonClose: true
}).then(function(modal) {
    $scope.contactSelect = modal;
});

I'm using Android 5.1, Ionic 1.2.1

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49186

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>