Skip to content
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

ios 12.2 beta - focus on text element doesn't open keyboard #330

Closed
yosikal opened this issue Mar 25, 2019 · 9 comments · Fixed by #334
Closed

ios 12.2 beta - focus on text element doesn't open keyboard #330

yosikal opened this issue Mar 25, 2019 · 9 comments · Fixed by #334
Labels

Comments

@yosikal
Copy link

yosikal commented Mar 25, 2019

I tested my Ionic App on iOS 12.2 beta and found out that keyboard is not being opened when focusing on text element. It seems like that element isn't getting focused at all. This works perfectly on previous iOS versions and also works on 12.2 if I remove the cordova-plugin-ionic-webview.

@jcesarmobile
Copy link
Member

To be clear, what you mean is that programmatically focusing a field doesn't work, right?

Like doing document.getElementById("focusme").focus(); should focus the field and show the keyboard, but it doesn't?

@yosikal
Copy link
Author

yosikal commented Mar 25, 2019

Correct.

jcesarmobile added a commit to jcesarmobile/cordova-plugin-ionic-webview that referenced this issue Mar 25, 2019
jcesarmobile added a commit that referenced this issue Mar 25, 2019
@zarko-tg
Copy link

Experiencing something along the same lines on Android (iOS is fine), but I got no clear case to describe yet. We've been in process of upgrading Cordova (what a mess...), plugins etc, now more or less functional using cordova 9.0.0, cordova-ios 5.0.0, cordova-android 8.0.0, cordova-plugin-ionic-webview 2.4.0.
We have a few instances of using .setFocus on TextInput's (Ionic 3.9.4).

@gregavola
Copy link

gregavola commented Mar 26, 2019

@jcesarmobile is this deployed to npm for 2.x users?

@jcesarmobile
Copy link
Member

It’s not published yet, will do it later today, I want to review some of the pull requests before

Ionitron added a commit that referenced this issue Mar 26, 2019
## [4.0.1](v4.0.0...v4.0.1) (2019-03-26)

### Bug Fixes

* **ios:** Fix autofocus on iOS 12.2 ([#334](#334)) ([cb4c491](cb4c491)), closes [#330](#330)
* account port on resolving uri path ([#321](#321)) ([fdfe8aa](fdfe8aa))
@Ionitron
Copy link
Collaborator

🎉 This issue has been resolved in version 4.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@jcesarmobile
Copy link
Member

4.0.1 and 2.4.1 are released with the fix

@borjalan
Copy link

borjalan commented Mar 29, 2019

It keeps not working for me.
I am using:

image
Cordova 8
Npm 6.9.0

I am having problems on iOs not on Android

Also, when I am setting HideKeyboardFormAccessoryBar to false, the accessoryBar shows but not the keyboard/selector. This is weird. Keyboard.show() don't work neither.

@MattDHill
Copy link

I'm still seeing this issue. When calling focus(), the keyboard "tries" to focus on the input element and display the keyboard, but then quickly retreats. I'm on iOS 11.4.1 and cordova-plugin-ionic-webview 4.1.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants