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
perf: Form goes blank #4888
Comments
Which version of Ionic? 1.2.2 was released just yesterday and addresses I believe this very issue |
Thank you @mlynch. I am currently using 1.2.1. I will update and reply back with the results. Happy New Year, buddy and thank you. |
I have the same issue. also in 1.2.2. I have 4 textboxes in a list, inside an ion-content tag. On 1.2.1 when deselecting the first textbox and selecting the second, it would show a white screen. On 1.2.2 this works fine, just until I click the "Done" button above the keyboard. The page goes blank. |
Also, using the ionic-keyboard-plugin and hiding the accessory bar does not fix the issue. Screen goes blank after clicking away from the keyboard. |
@rodyvansambeek What device/platform? |
@rodyvansambeek if you have any more code snippets, device/platform info, etc. that would be hugely helpful. I want to get this fixed today so we can cut another release as I consider this a P0 urgent issue. Thanks. |
Hi max, The platform is iPhone 5s iOS 9.2 For code snippet You could check my riktracker repository. On the first screen New game, there is the issue Verzonden vanuit Outlook Mobilehttps://aka.ms/qtex0l On Sat, Jan 2, 2016 at 7:02 AM -0800, "Max Lynch" <notifications@github.commailto:notifications@github.com> wrote: @rodyvansambeekhttps://github.com/rodyvansambeek if you have any more code snippets, device/platform info, etc. that would be hugely helpful. I want to get this fixed today so we can cut another release as I consider this a P0 urgent issue. Thanks. Reply to this email directly or view it on GitHubhttps://github.com//issues/4888#issuecomment-168397260. |
Just installed 1.2.2 and having the same issue. Focus input field in modal, can't scroll anymore. In addition, tapping the input field causes the whole screen to flicker. Tried with 1.2.1 and scrolling works after focussing the same input field in modal. |
$ ionic info Your system information: Cordova CLI: 5.4.1 |
iPhone 6, iOS 8.4.1 |
@leschirmeur slightly different issue and that was a consequence of fixing the bug reported here. Are you seeing any blank screens? |
trying... |
@mlynch could not cause any blank screens anymore. Seems to be working. |
Made some initial checks on the "does not scroll anymore"-Issue. It seems that overflow:hidden set by css class .overflow-scroll.keyboard-up:not(.keyboard-up-confirm) is causing the scroll not to work anymore. If I comment this out, scroll in modal works, even when keyboard is up. However, commenting it out causes the blank screen issue to reappear! |
@mlynch it seems 1.2.3 fixes the issue, I updated and cannot reproduce it anymore. |
I had a similar problem with version 1.2.2 AND 1.2.3. When I focus on an input text (not necessarily on slides nor in a form) on a Android device, the keyboard shows up, but the rest of the page becomes white, and we can't see the input anymore. |
I removed 'native scrolling' for that particular page. Using overflow-scroll="false" in ion-content. Temporarily this issue is fixed I believe. |
@Kannansundar, Indeed, it also fixed the problem for the #4892 . |
@mlynch Just for your information, this is what we are currently using to avoid the screen becoming blank - and mitigate a few other issues:
Regarding the 'keyboard-open' class Ionic adds to the body element, we are using a custom directive that we are adding to any element which should be hidden when the keyboard is up. Therefore we do not need the 'keyboard-open' class added to the body element anymore. P.S: For another screen, we are using a slightly more complex approach as we do frequent scrolling based on keyboard activity which is not being considered in the directive code shown above. Maybe this is helpful for someone struggling with similar issues... |
Is this problem will be fixed soon ? Or do we have to use overflow-scroll="false" everywhere.......? EDIT : even with overflow-scroll="false", everything is broken in ion-slides on open keyboard in inputs. |
I can confirm this behaviour. Started happening for me after upgrading my iOS. Ionic v 1.2.4 |
I hope this problem will be fixed as soon as possible. This is so critical... |
Hello, same problem here! And I'm working in a project that need to be published next week. Few minutes ago I just tried to wrap inside a but it is also breaking. Please, we need a fix for this issue, is critical. |
Can confirm, having this issue as well. Will definitely keep an eye out for a fix!
|
Here is a video where you can see this behavior. https://dl.dropboxusercontent.com/u/2354023/Ionic-keyboard-bug.mp4 |
UPDATE: After try with the problem is fixed, but I need to put them in all screens that have input fields. |
@kiwox You mean that you found a solution ? |
I just added overflow-scroll="false" to all < ion-content > that has an input field. |
Setting overflow-scroll="false" on my form views fixed this for me as well. I hope they can fix this issue with javascript scrolling as well. There are some advantages to using JS scrolling, but this bug is a big disadvantage right now... |
A bit late to the party, but did you find a solution ? |
Not for me... Waiting for the 1.2.5 version to see if the problem is fixed... |
Problem seems to be fixed in 1.3.0. https://github.com/driftyco/ionic/blob/master/js/views/scrollViewNative.js#L399 and https://github.com/driftyco/ionic/blob/master/js/views/scrollViewNative.js#L500 but it's commented out. I reactivated this code and it works. But i had to add the following CSS rule
to avoid content being unscrollable (sometimes) after keyboard has been shown. |
just another fix: i had to move https://github.com/driftyco/ionic/blob/master/js/utils/keyboard.js#L313 to https://github.com/driftyco/ionic/blob/master/js/utils/keyboard.js#L326 because in my case i have a form with a validation dialog which sets focus to an element after submitting. But this element is not an input field. What happens:
I think, target of |
@privetr is this issue also fixed for you in 1.3.0? (: |
I will need some time to test it, but if you want to close it, i will reopen it later if the problem still exists :) |
@privetr Alright sounds awesome! |
Problem still exists today Cordova CLI: 6.1.1 |
I agree with @constrom the problem still exists for me in 1.3.1 version. Please @iwan-uschka , can you give exactly the modifications you did ? Because the files don't exist anymore. I tried the overflow-scroll="false" on , OK it works BUT this deactivates the native scrolling (for example on Chrome you can not scroll anymore with the scroll bar, which was the best advantage of it). |
please see my last version of ionic.bundle.custom.js and compare it to the related version of ionic.bundle.js. you can use diffmerge, a simple app for comparing files, to see changes. BUT, i decided to go on with ionic.bundle.js because the issues weren't fixed i added this css
and til now i don't have any problems if somebody is using ngDialog, here is my configuration for solving blank screen issues caused by ngDialog:
|
This did not work for me (both css and modified the ionic.bundle.js file)... ON ANDROID. On Ios, I can't test it. Here is a video of what is happening : https://drive.google.com/open?id=0B32vZiPnyBzTTzJhSjlJc1BRNU0 At the first focus, the problem occurs, not the next ones. But app is unusable like this... |
And if I remove all the content of the keyboardFocusIn function (line 3865), ALL WORKS FINE. |
which android version do you use to test? i only had problems with iOS 9 |
I am using Android 5 and 6 |
i will keep an eye on it, but i never had problems with android before |
In iphone ionic, On tap of input fields, keyboard is showing but all fields are getting invisible. |
Hello guys! I had the same exact problem for IOS. I have found the solution thanks to this Ionic Forum post: In short:
Now the form is working perfectly with all the validations and stuff. |
Type: perf
Platform: ios 8 webview
I have created a form inside a Modal. When I try and scroll or click 'DONE' on the keyboard, the modal goes blank. I also testing this in a normal view state, and the same thing happens.
The text was updated successfully, but these errors were encountered: