-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
navController.setRoot(Page) does not work inside a popover #8437
Comments
@jgw96 @danbucholtz is there a chance this one to be fixed in the next RC release? It used to work in beta11 and after the update to rc0 it's no longer working. I need it in my app, because I have a logout button inside a popover, which must take user to login page via navController.setRoot(LoginPage); and now the LoginPage is not displayed anymore. Thanks! |
I have the same problem, any news about this? |
Same problem within a modal window too. |
same problem with a popover. The new page is loaded (when I check the DOM I can see it) but the 'old' page is still displayed. It seems that the page from which the popover has been invoked is not destroyed, as you can see here : The "app-root" is the old page (that was hosting the popover and that should not been displayed anymore) and the "ion-page" is the page that should be displayed. It worked on beta-11 but not on RC-0 |
@danbucholtz @brandyscarney could you please let us know if this could be fixed, or we need to change the UI of our apps? It's important to know if I must move the button, which opens a new page via setRoot outside the popover. |
@pdrosos You may workaround it with events api. Make your app-component subscribe to a event you may call "app:logout" and set the root page to the login from there. Inject Event from constructor so you can publish the "app:logout" event from your popover. |
For beginners like me who didn't understand where |
@jgw96 @manucorporat I still get a white screen of death if I try to redirect using setRoot from anywhere other than a root level page. Bottom line is this issue should not be closed. It is still present. See gif below when redirecting from a 2nd level page in: My app receives a logout event in the app.component class and does exactly as stated above:
Yet, as you can see, I get a white screen of death. |
Same here |
Same here, Does someone has any kind of work around? |
hello ... I am in urgent need of the version NavController_Release_v6 who could send me doing a favor email: [email protected] since thanks |
have the same white dead screen... and what is more irritating is that there is no way of debugging when running natively |
One solution I found was to close the popover and then call setRoot |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. 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. |
Short description of the problem:
When trying to navigate to a new page via an anchor click and call navController.setRoot(Page) inside a popover, the new page is not displayed. If navController.push(Page) is used instead, the page is displayed. Tested with Firefox, Chrome and Android 5.0.
What behavior are you expecting?
I expect the page, set via navController.setRoot inside the popover component to show up.
Steps to reproduce:
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
A repository, which demonstrates the problem can be found here.
Which Ionic Version? 1.x or 2.x
2.0.0-rc.0, 2.0.0-rc.1
Run
ionic info
from terminal/cmd prompt: (paste output below)Cordova CLI: 6.3.1
Ionic Framework Version: 2.0.0-rc.0
Ionic CLI Version: 2.1.0
Ionic App Lib Version: 2.1.0-beta.1
OS: Distributor ID: LinuxMint Description: Linux Mint 18 Sarah
Node Version: v6.7.
The text was updated successfully, but these errors were encountered: