Skip to content
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

Beta 11 / Ionic 2: NavController.pop or Back Button redirects to a black Page #7564

Closed
chack opened this issue Aug 5, 2016 · 15 comments
Closed

Comments

@chack
Copy link

chack commented Aug 5, 2016

Hey there,

if I'm really fast with the back button or using navController.pop() I'm getting following result:

image

I could fix it with a timeout of 100ms with navController.pop() but how can I fix the back Button? Im inserting the Page with navController.push so I don't get what I'm doing wrong...

UPDATE: The timeout of 100ms doesn't fix the issue...

@chack chack changed the title NavController.pop or Back Button redirects to a black Page Beta 11 / Ionic 2: NavController.pop or Back Button redirects to a black Page Aug 5, 2016
@jgw96
Copy link
Contributor

jgw96 commented Aug 5, 2016

Hello! Thanks for opening an issue with us! Would you mind posting a repo that i can use to reproduce this issue? Thanks for using Ionic!

@jgw96 jgw96 added needs: reply the issue needs a response from the user v2 labels Aug 5, 2016
@chack
Copy link
Author

chack commented Aug 5, 2016

There you go:

https://github.com/chack/app

@nhohb07
Copy link

nhohb07 commented Aug 9, 2016

I also encountered a similar issue in the beta-11, but beta-10 is still working normally

@jgw96
Copy link
Contributor

jgw96 commented Aug 9, 2016

Hello @chack , while i greatly appreciate the repo is their any way that you could provide a minimal example using one of our starters instead (ionic start test-app --v2)? It is much easier and efficient to debug with a minimal example compared to a full app. Sorry, i should have been more clear about my request for a repo. Thanks!

@alexbainbridge
Copy link

@jgw96 Assuming this is the same issue as the 226 on the conf app, I have found I can recreate it specifically when mode set to ios in the bootstrap. (happens one time in ten).

@rodneicouto
Copy link

This happens with me too!

ezgif com-video-to-gif

@jgw96
Copy link
Contributor

jgw96 commented Aug 9, 2016

@rodneicouto Hello! Are you getting any errors in the console when this happens? Also could your provide a minimal repo that i can use to reproduce this issue? Thanks!

@rodneicouto
Copy link

There is no error in the console.

I tried to reproduce in a smaller project or Plunker unsuccessfully.. Only happens with me in my big project.

The ion-content is receiving a strange opacity and transform style

<Ion-content class = "contact-list has-infinite-scroll" padding = "" style = "opacity: 0.8; transform: translateX (-33%);">

Sometimes work fine. Sometimes occurs another problem: the back button stopped working. It is intermittent.

If i shared my big project with you, help?

@rodneicouto
Copy link

With beta10 everythings working fine...

@chack
Copy link
Author

chack commented Aug 10, 2016

I was pushing the page through a input via (onFocus)=nav.push(second page). So the keyboard got up for a second then closed in the new page where I programmatically focus another input so the keyboard showed up again. By using a button with (click)=nav.push(second page) I don't experience the bug with the black page. Maybe it has something to do with the keyboard? But on @rodneicouto case is now keyboard shown so I don't know

@Ionitron Ionitron removed the needs: reply the issue needs a response from the user label Aug 10, 2016
@ferminmoli
Copy link

Hi, we could reproduce the issue. It appers when you add LoadingController and an Ajax call.

You can download the code from here: https://github.com/ferminmoli/Ionic-popToRoot

@nachofregeiro
Copy link

It looks like the LoadingController is overriding the app nav, and it's loosing the navigation stack.

@jgw96
Copy link
Contributor

jgw96 commented Aug 10, 2016

Hello everyone, after reviewing this issue some more it seems as if it is caused by #7605. Because of this i am going to consider this issue a duplicate of that issue and therefore close this one. Thanks for using Ionic!

@jgw96 jgw96 closed this as completed Aug 10, 2016
@jasonwaters
Copy link

I don't think this issue is caused by #7605, I'm not even using LoadingController and I am getting the exact same black screen.

@sereysethy
Copy link

I can confirm that using NavController.pop(), all pages get popped until it reaches a black screen. I tested it in ionic view on iOS. I do not use Toast or LoadingController.

I tested it in ionic 2.0.0-rc.3

Below is my package.json file.

{
  "name": "Testing",
  "author": "",
  "homepage": "",
  "private": true,
  "scripts": {
    "build": "ionic-app-scripts build",
    "watch": "ionic-app-scripts watch",
    "serve:before": "watch",
    "emulate:before": "build",
    "deploy:before": "build",
    "build:before": "build",
    "run:before": "build"
  },
  "dependencies": {
    "@angular/common": "2.1.1",
    "@angular/compiler": "2.1.1",
    "@angular/compiler-cli": "2.1.1",
    "@angular/core": "2.1.1",
    "@angular/forms": "2.1.1",
    "@angular/http": "2.1.1",
    "@angular/platform-browser": "2.1.1",
    "@angular/platform-browser-dynamic": "2.1.1",
    "@angular/platform-server": "2.1.1",
    "@ionic/storage": "1.1.6",
    "ionic-angular": "2.0.0-rc.3",
    "ionic-native": "2.2.3",
    "ionicons": "3.0.0",
    "lodash": "^4.17.2",
    "rxjs": "5.0.0-beta.12",
    "zone.js": "0.6.26"
  },
  "devDependencies": {
    "@ionic/app-scripts": "0.0.45",
    "typescript": "2.0.6"
  },
  "description": "Testing",
  "cordovaPlugins": [
    "cordova-plugin-device",
    "cordova-plugin-console",
    "cordova-plugin-whitelist",
    "cordova-plugin-splashscreen",
    "cordova-plugin-statusbar",
    "ionic-plugin-keyboard"
  ],
  "cordovaPlatforms": []
}

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants