-
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 pop don't work and webview black #9022
Comments
If you just have one view in the navigation stack and you pop it, there are 0 views in the stack right? |
I have a similar problem described in here as well: #8713 . I am going to start calling it the black screen of death :-) . I basically have the following code on my tabs page. _HTML_
_TS_
Any way of checking on our side if a tabs nav stack has any views in it before popping ? @manucorporat Thank you ! |
As a workaround I ended up using this:
|
The cause of this seems to be a change in what the NavController is. When a tab controller is on a page, the TabController is passed to the page's constructor as the NavController. This is what's causing the pop to fail. The TabController has a different nav stack and when pop() is called, either explicity on the NavController instance or by using the navPop decorator, the request fails as the stack is empty. The failure can be prevented, of course, by checking NavController.canGoBack(), but this doesn't solve the problem that the NavController provided to the constructor is not the one that is expected. Knowing this, what is the more appropriate approach? |
Is there any progress in this issue? |
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! |
when webview has ion-tabs, if current webview runs 'NavController pop', the target webview turns black.
![1](https://cloud.githubusercontent.com/assets/16894961/20001311/95d68f5e-a2b6-11e6-9a3f-f9f435f0f2e8.png)
![2](https://cloud.githubusercontent.com/assets/16894961/20001316/97a6c42a-a2b6-11e6-9d7d-d825eb445902.png)
![3](https://cloud.githubusercontent.com/assets/16894961/20001318/9a220dae-a2b6-11e6-82b3-31784e6c5343.jpg)
![4](https://cloud.githubusercontent.com/assets/16894961/20001323/9c170024-a2b6-11e6-8503-5c5d103cdedc.jpg)
ionic version : ionic2RC2.
looking forward your help!!!
as follows:
The text was updated successfully, but these errors were encountered: