-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Keyboard language changing with multiple TextInput with secureTextEntry #22543
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
It looks like it's related to this: https://stackoverflow.com/questions/52701160/native-uitextfield-secure-text-entry-forces-english-us-keyboard |
Still happening with the new version :
Will try on the new iOS 12.1.3 to see how it goes. |
Same bug happening with latest version of iOS : |
Thanks for the detailed information and also adding it to #21572. In an effort to reduce noise in the issue tracker, and also because this appears to be an iOS bug, we’re closing this issue. |
Environment
Description
First of all this issue is related to the latest version of iOS starting with iOS 12.0, iOS 12.1 and more (I wasn't experimenting this issue using the iOS 11.1 or 10.X)
It seems that the secureTextEntry change the keyboard locale on IOS when there is one field in form who's not secure.
My current project is using
react-native 55.4
and I am having the same problem with it.For my test I created a new project with the newest version of react-native 👍
Reproducible Demo
To reproduce this bug you just have to make a fresh installation as mentioned before with this command :
react-native init test577
Then you have to change the language of the iPhone to put it in French (maybe the issue is same with other language but I was testing with French).
To do so go to Setttings > General > Language and Region. Then change the language of the iPhone to French and the region to French (maybe the region can't be ignored). You should have something like this :
Here is a reminder of the configuration of the default project is and the code I am using :
Package.json
Code
Just the simple default example with the bug as describe before.
In addition we can see that the problem seems to be cause by the
secureTextEntry={true}
only when you have two or more (the behavior is actually not very logical)So if you change the code and keep only two fields as follow, it will work perfectly :
Works
Same with only
secureTextEntry
two or as much as you want will work properly :Works
As soon as you add two
TextInput
with asecureTextEntry
with one field that isn't asecureTextEntry
the keyboard starts to bug as described.With Three :
Doesn't Works
The first one and last one keeps the keyboard as it is and the two others change the keyboard.
So one way to "deal" with it to make it works is by adding a line in between the
secureTextEntry
as follow :Works
In this case the keyboard keeps working properly.
I so tried to add the field and hide it with style :
Works
Doesn't Works
Changing the order of the fields also seems to make it work again :
Works
I also tried with other elements like a
View
or aText
but didn't work with these elements.Hope all this informations will be helping to correct this bug that is pretty annoying
And that is reproduce on both Simulator and Device
Related Issue
#21572
The text was updated successfully, but these errors were encountered: