-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
Native keyboard word suggestions not working in iOS #10852
Comments
Besides word suggestions, autocorrect isn't working either. This might be a Cordova limitation at the moment though! |
It's really strange how this problem only exists in iOS. Maybe there are some limitations related to WkWebView that prevents html inputs from acting like native ones? |
You have to add the attributes to the input, not ion-input. My Workaround is:
and use like this
|
same issue in android too |
Nice idea. I wanted to go opposite way turning all that stuff off. this._renderer.setElementAttribute(input, 'autocapitalize', 'off'); |
Still having this issue. @rodneicouto 's solution does not work for ionic 3 it seems. |
This worked for me on ios: https://forum.ionicframework.com/t/ionic-input-textarea-spellcheck-or-auto-complete-on-android/73233/12 use |
@martinhanke I tried this solution for iOS using ionic 3 and it did not work for me. I'll try once more to see if there were other factors. |
@gabriellecozart I'm using latest ionic (3.6.0) and it works for me. |
@martinhanke It works! Don't know why it didn't the first time I looked at that post. Wow... Thanks for replying! I've been putting off that fix for a while haha |
One way or another - workaround =/= fix, so i believe it should not be closed. |
@themastersoda I think the documentation simply needs updating. If it was updated and had examples on their page then there wouldn’t be so much confusion about what to add to the html to make it work. They need to do some further investigation with people having this problem and making sure they’re using the current standards. Then once the documentation is updated they can close the issue. |
I still have this issue after trying all the solutions planted here. Please help! Any suggestions? |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Ionic version: (check one with "x")
[ ] 1.x
[X] 2.x
I'm submitting a ... (check one with "x")
[X] bug report
[ ] feature request
[ ] support request
Current behavior:
Native keyboard in iOS does not display word suggestions even though ion-input attribute autocomplete is set to true / on. Everything works as expected on Android devices though.
Expected behavior:
Native keyboard should display word suggestions if ion-input attribute autocomplete is set to true / on on both iOS and Android.
Steps to reproduce:
I have created a repository displaying the issue Github repo
I've added several ion-inputs with different combination of attributes to show the issue. Running the app on Android device we can see that keyboard shows suggestions if autocomplete attribute is present, however iOS simply does not care and never displays anything. Tried enabling keyboardAccessoryBar just in case, but that does not help in any way as well.
Ionic info: (run
ionic info
from a terminal/cmd prompt and paste output below):The text was updated successfully, but these errors were encountered: