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

Ionic 2 - IOS 10 Keyboard bug

Open John0x opened this issue 10 years ago • 37 comments

Short description of the problem:

This happens on every ios 10 device. If you open a dialog (alert) und enter something into an input field and you close the dialog (by clicking the close button), then the keyboard will stay open and not close. I've tried to use the ionic keyboard plugin to close the keyboard manually upon clicking the button (Keyboard.close()), but it has zero affect.

I've created a new blank project (ionic start testProj --v2 --ts) and added a dialog with an input field and a button (actually took the code from the docs to make sure), it has the same effect.

Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc) There are no error messages or whatsoever.

Which Ionic Version? 1.x or 2.x 2

Run ionic info from terminal/cmd prompt: (paste output below) Your system information:

Cordova CLI: 6.3.1 Gulp version: CLI version 3.9.1 Gulp local: Local version 3.9.1 Ionic Framework Version: 2.0.0-beta.11 Ionic CLI Version: 2.0.0-beta.37 Ionic App Lib Version: 2.0.0-beta.20 OS: Node Version: v6.3.0

John0x avatar Sep 23 '16 09:09 John0x

It feels like there is something blocking, since the log output and a lot of events are having a weird behavior on ios.

John0x avatar Sep 23 '16 11:09 John0x

Any news about this? Got a release on hold because of this bug.

John0x avatar Sep 28 '16 17:09 John0x

@John0x would you mind trying this with our wkwebview plugin. Thanks!

jgw96 avatar Sep 28 '16 17:09 jgw96

Sadly it does not fix the bug. Have you tried recreating the bug as described in the first post?

John0x avatar Sep 29 '16 10:09 John0x

I installed the plugin properly and it was running (confirmed), but still had the same behaviour.

John0x avatar Sep 30 '16 06:09 John0x

Same problem here, the keyboard does not close and it's a big problem for iOS apps...

zefrench avatar Oct 05 '16 19:10 zefrench

This happens in Ionic 2 RC0 as well; fixing this soon would greatly improve the confidence of those of us who are considering Ionic for a new app but want assurance that it will stay on top of device platform updates.

jkobylec avatar Oct 05 '16 20:10 jkobylec

For me it's a pain to update my ionic2 beta 11 app version to RC0..

zefrench avatar Oct 05 '16 20:10 zefrench

Yes, publishing a workaround that works prior to RC0 would also be super nice since the update isn't trivial.

jkobylec avatar Oct 05 '16 21:10 jkobylec

I start to update today but as I'm not sure if there will be some big change log soon, I think it's better to wait and update my app when Ionic team will ensure there will not be any other BIGGGGG Change....

zefrench avatar Oct 05 '16 21:10 zefrench

It's the RC, so there shouldn't be alot of big changes anymore. The Keyboard doesn't close automatically but you can close it yourself by subscribing to the onWillDismiss event and then close it manually (Keyboard.close() with the Keyboard plugin).

John0x avatar Oct 06 '16 06:10 John0x

Thanks @John0x this is a good fix. Someone here notice there is a strange behavior when you launch an alert ? The view (only the content not the header) is turning white for some millisecond and then the alert is shown.

zefrench avatar Oct 06 '16 13:10 zefrench

I'm seeing this problem too - the keyboard is not disappearing after an alert. IOS 10 (iPhone SE) running from within Ionic View.

richardshergold avatar Oct 07 '16 14:10 richardshergold

Definitely a bug. I was also able to get rid of the keyboard by using onDidDismiss() and Keyboard.close() on the alert controller, but still looks unprofessional as the screen scrolls up including the header. Hope it gets fixed soon.

sjdrew avatar Oct 08 '16 00:10 sjdrew

Is there an update to this bug? With RC.1 and iOS10 I still see the bug.

GrischaSchmiedl avatar Oct 19 '16 19:10 GrischaSchmiedl

Yep I also see this one with rc1.

ghenry22 avatar Oct 30 '16 02:10 ghenry22

It also happens to me on RC1, and not in an alert. Just on a regular input on a regular form, if you send the form by tapping on return key, after the redirect with this.nav.setRoot the keyboard keeps open.

jvlobo avatar Nov 02 '16 08:11 jvlobo

Working in this issue! Sorry for taking so long

manucorporat avatar Nov 08 '16 00:11 manucorporat

I made a workaround importing Keyboard from 'ionic-native' anda executing 'Keyboard.close()' after the action I needed

rodrigobnn avatar Nov 10 '16 18:11 rodrigobnn

Hi,

Importing the Keyboard and force it to close partially worked for me, as the input dialog sometimes stays open and freezes the app.

will this be fixed in the next version? Any hind on a release date for it?

Thanks for your effort. Cheers

ahlidap avatar Nov 11 '16 11:11 ahlidap