-
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
Ionic 2 - iOS - SearchBar + back-navigation = black screen #6540
Comments
@Daforest, Working on this now. Will hopefully be in beta 9. Thanks, |
@danbucholtz Great news! |
keep the click block up longer if the keyboard is open closes #6540
@Daforest, This should be fixed now. Please let me know if this comes up again after the next beta release. Here's the PR: Thanks, |
@danbucholtz Tested on Beta9, this bug is not fixed |
@Daforest, Can you make a video/gif of what you're doing to get into that state? Thanks, |
@danbucholtz Sure, Ill try making one tonight. On a side note .. Following the "steps to reproduce" above, would create the same result. |
@danbucholtz Here is a video of the bug. I managed to get it into the "black view state" on the third attempt. Video |
Interesting... the surprising thing to me is you did it with the keyboard dismissed. Our fix was making sure the time needed to close the keyboard was accounted for. Can you do me a favor and make another video of the same thing with the following added to your app.core.scss:
This will make our "click blocker" red and transparent. The click blocker is active when the app is disabled. The app is disabled when transitioning. Basically, I am hypothesizing that the app is re-enabling before the transition completes. Once activated, the click on the back button goes through and starts another transition. The transition logic gets confused (since they're async) and ultimately bails. That is my current theory. Thanks, |
Here is a video with the clickblocker active, Video |
Thanks, I'll take a look again now that I see how you're doing it. I Appreciate your help! Thanks, |
I'm also seeing this issue, inside mobile Safari. The repro steps are also related to searchbar and back button. |
@560889223 would you mind giving this a try with the latest nightly? There have been alot of changes to layout that may have fixed this issue. To try nightly just run |
After some testing with the latest nightly i cant seem to reproduce this issue anymore. Because of this i will be closing this issue for now, but if anyone else runs into it with the latest nightly feel free to comment and i will happily reopen. Thanks everyone! |
I run into it in Beta 11, see #7564 |
About your video. I have the same when tap on back button too fast. I think this issue about page transition. I made a workaround in ionic-angular/components/navbar/navbar.js the function var lastClick;
so i just not able to make this.navCtrl.pop(); if click back too fast |
I think this issue was already fixed in head of master. You fix might work, but it does not resolve the root of the problem. what if I call |
wow, great! |
@danbucholtz @jgw96 @manucorporat global packages:
local packages:
System:
|
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:
I've had this issue since the early betas, but not until recently was I able to find the exact recipe to reproduce the bug. The result of the bug is a blackscreen view, which can only be fixed with a manual refresh. This bug is iOS-only.
In short:
Do a search in a list of items, every item is a button which navigates the user to a new view.
Quickly tapping the navbar 'back' will sometimes result in a black view and no errors.
Tapping one of the items in the list without a search, would not trigger the bug.
What behavior are you expecting?
Well .. the expected behavior would be navigation without the result of a black view.
Steps to reproduce:
( ionic start t tutorial --v2 --ts )
hello-ionic.html, hello-ionic.ts, item-details.html and item-details.ts
'ionic run ios' or 'ionic build ios' and run with xcode
Which Ionic Version? 1.x or 2.x
Ionic 2
Plunker that shows an example of your issue
https://plnkr.co/edit/g1IrlkyXGFHecDPqP49o?p=info
Your system information:
Cordova CLI: 6.1.1
Gulp version: CLI version 3.9.0
Gulp local: Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.6
Ionic CLI Version: 2.0.0-beta.25
Ionic App Lib Version: 2.0.0-beta.15
ios-deploy version: 1.8.6
ios-sim version: 5.0.6
OS: Mac OS X El Capitan
Node Version: v4.4.0
Xcode version: Xcode 7.3.1 Build version 7D1014
The text was updated successfully, but these errors were encountered: