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

@ajoslin Any improvements for these keyboard problems in the beta?

calendee avatar Mar 20 '14 14:03 calendee

Mr. @tlancina will be working on all of the keyboard issues. He's been putting together the Ionic View app and gained a lot of experience dealing with the keyboards, so yes this is being addressed.

adamdbradley avatar Mar 20 '14 15:03 adamdbradley

Any progress on this @tlancina @adamdbradley ? I can confirm this is also an issue on Android 4.3 (Galaxy S4).

rvanbaalen avatar Apr 07 '14 04:04 rvanbaalen

See Max's comment on #26 ;)

somethingnew2-0 avatar Apr 07 '14 04:04 somethingnew2-0

@rvanbaalen I merged in the changes, would you be able to help test them out?

Related: #862 #740 #726 #691 #689 #365 #26 #1134 #1120 #1105 #1078 #772 #745

adamdbradley avatar Apr 17 '14 20:04 adamdbradley

Sure @adamdbradley I already did some testing since this is one of the most annoying outstanding issues in our project. Please see attached screenshots. I hope the annotated text is readable enough.

first second third

rvanbaalen avatar Apr 17 '14 21:04 rvanbaalen

@adamdbradley And the 'initial' screenshot

initial

rvanbaalen avatar Apr 17 '14 21:04 rvanbaalen

@tlancina Any thoughts what might be causing this? Since it's android, the keyboard plugin shouldn't make a difference right?

@rvanbaalen Is that a Samsung S3 with Android 4.3? Can you get this same problem to show up on other phones? Thanks.

adamdbradley avatar Apr 17 '14 22:04 adamdbradley

Quick reply: its a Galaxy S4 4.3

rvanbaalen avatar Apr 17 '14 23:04 rvanbaalen

hello developers, i am new to this ionicframework! but somehow created a login form! the same issue when typing the keyboard hides the input!! it doesnt focus on it! i am using SONY XPERIA E. and current beta version of ionic pls help.

shivasurya avatar Apr 28 '14 08:04 shivasurya

Should be fixed with latest tap/keyboard/viewport changes in beta 4.

tlancina avatar May 12 '14 16:05 tlancina

does anyone see this issue back in beta 5b?

okonon avatar May 15 '14 22:05 okonon

it seems that the old keyboard issue(the keyboard is covering up the input fields in a form when typing and you cannot scroll up) is back in beta4 and beta5b. beta3 didn't have this issue. does anyone have this issue in beta4 or beta5b? This only happens on android.

There's another issue, when entering text into a text field, the text fields didn't get updated until you tap on somewhere else. e.g. you type"abcd" into a text field. when you close the keyboard, the text field is still blank. I have to tap on some other field in order make "abcd" to show up on the text field that I was trying enter.

I am testing on my galaxy S w/4.2.2 and I set to fullscreen in the config.xml

is it caused by the fullscreen=true preference?

also worth mentioning that i do have ionic keyboard plugin installed and it is awesome! When running on iOS 7.1 it does remove an accessory bar from the keyboard (does not do it on android for me).

okonon avatar May 15 '14 22:05 okonon

@softBarbarian do you set ionic.Platform.isFullScreen = true ? You need to do this manually for Android with the fullscreen preference right now.

tlancina avatar May 15 '14 22:05 tlancina

@tlancina where do I set it? in .run() section of app.js?

okonon avatar May 16 '14 23:05 okonon

That's probably the best place, it just needs to be set before the keyboard shows.

tlancina avatar May 17 '14 15:05 tlancina

I'm using beta 4 version and it's working too bad for me when the keyboard shows over the bottom inputs and so the user can't see what they're typing.

By now I solved it by setting preference "fullscreen" to "false". So, my app is not fullscreen anymore. Let us know when a fix for the bug is ready so we can enjoy that fullscreen feature.

Thanks a lot for your efforts.

Greetings.

zheref avatar Jun 11 '14 00:06 zheref

Setting android:windowSoftInputMode="adjustResize" in AndroidManifest.xml as described here: http://ionicframework.com/docs/api/page/keyboard/ solved the problem for me. Ionic beta 6 + Android 4.1.2

dymo avatar Jun 11 '14 03:06 dymo

I tried that with Ionic beta 4, but didn't work. Maybe in 6 it's already solved. Is any safe way to update Ionic without spoiling something (mainly the ionic directives dependent css style selectors)?

zheref avatar Jun 11 '14 03:06 zheref

@zheref when your app was fullscreen did you set ionic.Platform.isFullScreen = true ? Also feel free to post a codepen/some code that replicates the problem and we can try and help you out.

tlancina avatar Jun 11 '14 13:06 tlancina