With LoadingController currently been displayed, pressing the hardware back button takes you to the previous view with the loadingController still been shown.
Expected behavior:
LoadingController should prevent any hardware back button press from working OR dismiss the loadingController when the hardware back button press takes user to the previous view.
Steps to reproduce:
Push to a new view
Call loadingController.present()
Press the hardware back button while loadingController is still displayed
Related code:
// push to a new view
this.navCtrl.push(Filter);
// Call LoadingController
let loader = this.loadingCtrl.create({
content: "Please wait...",
duration: 10000 // to enable it still longer on the screen.
});
loader.present();
Other information:
Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):
Original issue by @dayaki on 2017-02-17T12:22:16Z
Ionic version: (check one with "x") [ ] 1.x [x ] 2.x
I'm submitting a ... (check one with "x") [x] bug report [ ] feature request [ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
With LoadingController currently been displayed, pressing the hardware back button takes you to the previous view with the loadingController still been shown.
Expected behavior:
LoadingController should prevent any hardware back button press from working OR dismiss the loadingController when the hardware back button press takes user to the previous view.
Steps to reproduce:
Push to a new view
Call loadingController.present()
Press the hardware back button while loadingController is still displayed
Related code:
Other information:
Ionic info: (run
ionic info
from a terminal/cmd prompt and paste output below):