ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

Keyboard Hiding Inputs Problem

Open calendee opened this issue 12 years ago • 63 comments

See this post on the forums.

http://forum.ionicframework.com/t/scroll-to-the-focused-item-input-when-the-keyboard-is-up/422

calendee avatar Jan 06 '14 17:01 calendee

Hello @tlancina.

Certainly I tried running that instruction in my app's angular run closure, but even so that didn't work.

My last option was disabling completely the fullscreen as I stated before.

Thanks a lot.

zheref avatar Jun 11 '14 14:06 zheref

@tlancina I've just realized, even when disabling fullscreen in config.xml, the inputs inside modals keep being hidden by the keyboard when shown.

I need to provide solution to this bug in my app as soon as possible. Is there anything I can do meanwhile to solve this?

I appreciate your help. Thanks a lot.

zheref avatar Jun 12 '14 02:06 zheref

@zheref as I said before, the only way we can help you is if you post some code replicating the problem.

tlancina avatar Jun 12 '14 14:06 tlancina

Hey @tlancina I just ran into this as well, Forutnately, the ionic.Platform.isFullScreen = true trick worked for me just fine.

Perhaps this should be added as a standard part of the $ionicPlatform.ready in .run ? Since the default ionic start app command produces <preference name="fullscreen" value="true" /> in Config.xml, I think most everyone needs this from the get-go.

calendee avatar Jul 01 '14 15:07 calendee

@calendee thanks for the heads up! I've just removed the fullscreen preference so it's no longer the default since the majority of apps on iOS and Android are not in fullscreen.

tlancina avatar Jul 01 '14 16:07 tlancina

I have the same problem, I tried every things but not working yet.

samuelcastro avatar Apr 11 '15 02:04 samuelcastro

Having same problem as well. Tabs move up to top of keyboard when clicking an input field.

akonya avatar Apr 25 '15 21:04 akonya

@akonya assuming you have the ionic keyboard plugin, try adding an event listener for when the input is selected / focused, and call cordova.plugins.Keyboard.disableScroll(true);

dscx avatar May 12 '15 22:05 dscx

Hi guys i know this issue is closed but still i am getting this problem

this is are my version what i am using

ionic info Cordova CLI: 5.0.0 Ionic CLI Version: 1.4.5 Ionic App Lib Version: 0.0.22 OS: Distributor ID: Ubuntu Description: Ubuntu 14.04.2 LTS Node Version: v0.12.3

ionic plugin ls Updated the hooks directory to have execute permissions com.ionic.keyboard 1.0.4 "Keyboard" cordova-plugin-crosswalk-webview 1.2.0 "Crosswalk WebView Engine" cordova-plugin-inappbrowser 1.0.1-dev "InAppBrowser" cordova-plugin-legacy-whitelist 1.0.0 "Legacy Whitelist" cordova-plugin-whitelist 1.0.0 "Whitelist" org.apache.cordova.device 0.3.0 "Device" org.apache.cordova.splashscreen 1.0.0 "Splashscreen"

swapnil-rapidops avatar May 28 '15 09:05 swapnil-rapidops

I'm still seeing this issue as well, using Ionic 1.0.0, on Android.

zapnap avatar Jun 24 '15 14:06 zapnap

I'm also experiencing this issue. Any updates?

grantgumina avatar Jun 25 '15 01:06 grantgumina

Still this issue in Ionic 1.0.0

saurabhgupta050890 avatar Jun 26 '15 14:06 saurabhgupta050890

Keyboard is pushing the content upwards..

visalmedepalli avatar Jun 29 '15 11:06 visalmedepalli

For people having issues with the keyboard, take a look at the docs for some tricks for iOS and Android: https://ionicframework.com/docs/nightly/api/page/keyboard/

On Mon, Jun 29, 2015 at 6:29 AM ResuRRectorX [email protected] wrote:

Keyboard is pushing the content upwards..

— Reply to this email directly or view it on GitHub https://github.com/driftyco/ionic/issues/365#issuecomment-116621914.

tlancina avatar Jun 30 '15 14:06 tlancina

hide-on-keyboard-open is not a solution to this. And I can't imagine the vast majority of people want their apps to be fullscreen (no status bar). Am I missing something else there?

zapnap avatar Jun 30 '15 23:06 zapnap

@zapnap do you have adjustResize in your AndroidManifest.xml?

Feel free to post a codepen that reproduces the issue, along with what device and version of Android you're using and we can take a look.

tlancina avatar Jun 30 '15 23:06 tlancina

Just a quick note, if it can help narrow down the issue : it can be linked to the native scrolling. If you defined :

$ionicConfigProvider.scrolling.jsScrolling(false);

for Android, try without and report here.

JerryBels avatar Jul 29 '15 09:07 JerryBels

Thanks, @JerryBels this solved the issue for me. But i was using the native scrolling by default because the ionic one was too slow. Any ideas on how to solve that?

seyuf avatar Jul 31 '15 14:07 seyuf

This issue have been fixed in the leatest release v1.0.1, we now use native scroll with the keyboard!

seyuf avatar Jul 31 '15 15:07 seyuf

Nice ! I will upgrade :)

JerryBels avatar Aug 02 '15 19:08 JerryBels