-
Notifications
You must be signed in to change notification settings - Fork 24.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
TextInput with secureTextEntry loses value #9148
Comments
what you probably want to do is store the values in your state object, i.e. call setState on changing input text and set the TextInput's |
I actually tried that, but it doesn't fix the problem (should have mentioned it in my original post). |
hmm, quite interesting indeed. Looking at it closer, I found out that is actually the intended behavior on ios. Try launching the RN play demo, and go to settings -> icloud and try your procedure |
I've got the same problem after updating from 0.27.0 to 0.29.0 or 0.30.0. |
This is default behaviour. This works same in iOS native development. |
It would be nice to support not clearing the password on iOS. There are some workarounds (for UITextField) here: |
I'm going to close this issue as "works as intended". In general if something works a particular way in iOS native development it seems reasonable to consider it out of scope for RN to fix it. |
I'm developing an app with React Native 0.29.1 and React 15.2.1 in Mac OS X El Capitan 10.11.5. I've noticed that a TextInput with
secureTextEntry
set to true will lose its value if you:I've reproduced the issue here:
https://rnplay.org/apps/Xpn4uw
The text was updated successfully, but these errors were encountered: