You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] content disappears when keyboard is up #10183
Current behavior:
When having slides, with a scroll, as suggested here, in the last comment, the content disappears when opening the keyboard, except for the first input.
Note: this happens on device, in this example I am using an android emulator, but it also happens if you serve and open the page via iPhone.
I have this as well, with an ion-content inside an ion-slide. Unfortunately, everything in the ion-slides remains invisible after the keyboard is closed; I can actually interact with elements, type into inputs, etc, but can't see anything. Any manual changes to styling (i.e. in the web inspector) immediately make the contents of the slider visible again. For us this only happens on iOS.
I had this issue, but found this fix on stackoverflow. So far this seems like an alright solution, but I'm not certain. I took some screenshots in Chrome's devtools:
Is there an actual solution for this issue anywhere? I've found at least a dozen threads linking each other but no definitive solution. I've wasted lot of time on it, tried all solutions but nothing is working. The scrolling behavior on focus is unpredictable.
after long research and reading that this issue is still open in cordova/ionic, I decided to solve the issue by myself.
The idea is to adapt the header's height programmatically depending on the keyboard's height.
1.- On the header of the view template (HTML) attach a style directive:
<ion-header [ngStyle]="getKeyboardStyle()" >
2.- On the component (TS) I triggering the keyboard's events (show, hide) and the height value:
This issue has been automatically identified as an Ionic 3 issue. We recently moved Ionic 3 to its own repository. I am moving this issue to the repository for Ionic 3. Please track this issue over there.
If I've made a mistake, and if this issue is still relevant to Ionic 4, please let the Ionic Framework team know!
Activity
jgw96 commentedon Jan 26, 2017
Hello @AmitMY , thanks for opening an issue with us and a HUGE thanks for the detailed info and repro case. We will take a look into this.
mattbryan9 commentedon Jan 27, 2017
I have this as well, with an ion-content inside an ion-slide. Unfortunately, everything in the ion-slides remains invisible after the keyboard is closed; I can actually interact with elements, type into inputs, etc, but can't see anything. Any manual changes to styling (i.e. in the web inspector) immediately make the contents of the slider visible again. For us this only happens on iOS.
chrislow commentedon Feb 2, 2017
1+ same issue here, using inputs inside slides. [Image here].(#6228 (comment))
#6228
daraul commentedon Apr 7, 2017
I had this issue, but found this fix on stackoverflow. So far this seems like an alright solution, but I'm not certain. I took some screenshots in Chrome's devtools:
Without keyboard:

With keyboard:

fix(keyboard): big keyboard/input refactor
fix(keyboard): big keyboard/input refactor
zakton5 commentedon Sep 15, 2017
+1
chrismclarke commentedon Oct 29, 2017
+1
aymehri commentedon Dec 3, 2017
+1
milanosie commentedon Dec 6, 2017
Problem still open.... Having the same issue here
1 remaining item
tr049 commentedon Dec 13, 2017
Facing same issue
llalueza commentedon Dec 22, 2017
Same issue on my side too and it seems there´s no fix/temporal patch working like in other versions.
Working with Ionic 3.
Coming from: #12661
iamongit commentedon Mar 5, 2018
Is there an actual solution for this issue anywhere? I've found at least a dozen threads linking each other but no definitive solution. I've wasted lot of time on it, tried all solutions but nothing is working. The scrolling behavior on focus is unpredictable.
polfernandez commentedon Mar 6, 2018
after long research and reading that this issue is still open in cordova/ionic, I decided to solve the issue by myself.
The idea is to adapt the header's height programmatically depending on the keyboard's height.
1.- On the header of the view template (HTML) attach a style directive:
2.- On the component (TS) I triggering the keyboard's events (show, hide) and the height value:
Where this.keyboardHeight is a global variable number type. And this.keybaord and this.nativeKeyboard are the cordova plugins.
3.- Finally, this is the method returning the height attached to the ngStyle directive of the header:
I hope that this can help.
pradt commentedon Jun 19, 2018
@gbrits solution worked for me thank you.
carvarr commentedon Jul 29, 2018
any solution ?
ionitron-bot commentedon Nov 28, 2018
This issue has been automatically identified as an Ionic 3 issue. We recently moved Ionic 3 to its own repository. I am moving this issue to the repository for Ionic 3. Please track this issue over there.
If I've made a mistake, and if this issue is still relevant to Ionic 4, please let the Ionic Framework team know!
Thank you for using Ionic!
ionitron-bot commentedon Nov 28, 2018
Issue moved to: ionic-team/ionic-v3#170