Ionic version: (check one with "x")
[ ] 1.x
[ ] 2.x
[x] 3.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:
When I open a modal with lazy loading I have a strange bug.
The Modal is shown normally without problems but when I close the modal the app loads, not the page which created the modal, it loads a completely different page (intro.ts)
I open the modal with this code:
openRentenInfoPage() {
this.modalCtrl.create('InfoRentenbescheidPage').present();
}
I close the modal with this code:
dismiss() {
this.viewCtrl.dismiss();
}
I don't have this problem on other pages who use a Modal.
This problem is also there when i push the page with the navCtrl...
Gif
Repo
Expected behavior:
After clicking on dismiss the questions-before (the page which creates the modal) page should be the shown page.
For Ionic 1 issues - http://plnkr.co/edit/Xo1QyAUx35ny1Xf9ODHx?p=preview
For Ionic 2 issues - http://plnkr.co/edit/z0DzVL?p=preview
-->
Related code:
insert any relevant code here
Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):
Cordova CLI: 6.5.0
Ionic Framework Version: 3.0.1
Ionic CLI Version: 3.0.0-beta.5
ios-deploy version: Not installed
ios-sim version: Not installed
OS: macOS Sierra
Node Version: v7.8.0
Xcode version: Xcode 8.3.1 Build version 8E1000a
insert the output from ionic info here
Hello! Hmm this is definitely interesting. Unfortunately I cannot reproduce this issue on our lazy-loading version of the conference app, which uses modals. Could you share a minimal reproducible example of this issue?
I had to remove the code because I forgot tho remove some lines of code.
I will read it later.
I created a new GitHub repo with the code: https://github.com/MTechDE/ionic-modal-bug
Just run npm install and navigate thru the intro page. On the fourth question page click on the green labeled Link like in this gif: https://gifyu.com/images/iOnic3_modal_bug.gif
@jgw96 I still have this problem in Ionic 3.0.1
Same problems here. So frustrating
@danielsogl Can you try adding return false after calling your function openRentenInfoPage().
I think it will redirect to the link in href if return false is not added. (Reference)
Thanks for the issue! This issue is being closed due to inactivity. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Thank you for using Ionic!