Monday, 22 October 2018

Handling hardware Backbutton after a Button inside a Menu opens a Modal

I have an app with a Sidemenu.

On this menu there's a div tappable that opens a Modal wich serves me as a psedo-select box

    let modal = this.modalCtrl.create('SelectPage');

    modal.onDidDismiss(option => {
      this.updateSelection(option);
    });

    modal.present();

The problem is: If the user tap the Backbutton It doesn't (instantly) close the Modal. First it closes the Sidemenu (behind the modal) then If I tap again it closes de Modal.

I thought it should close the Modal first... Any help?



from Handling hardware Backbutton after a Button inside a Menu opens a Modal

No comments:

Post a Comment