-
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
Toggle secureTextEntry cursor spacing #23524
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hramos has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Added a test to RNTester and verified this doesn't change behavior on iOS 12 and it fixes the issue on iOS 11. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cpojer is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
@ericlewis merged commit 8ce3c1b into |
Summary: This is a fix for #5859, based on the feedback in #18587. Instead of using `didSetProps` it uses a setter. I will also note that setting to `nil` no longer works (crashes) so setting it to a blank string then back to the original works fine. [iOS] [Fixed] - Toggling secureTextEntry correctly places cursor. Pull Request resolved: #23524 Differential Revision: D14143028 Pulled By: cpojer fbshipit-source-id: 5f3203d56b1329eb7359465f8ab50eb4f4fa5507
Summary
This is a fix for #5859, based on the feedback in #18587. Instead of using
didSetProps
it uses a setter. I will also note that setting tonil
no longer works (crashes) so setting it to a blank string then back to the original works fine.Changelog
[iOS] [Fixed] - Toggling secureTextEntry correctly places cursor.
Test Plan
Toggle the isSecureEntry, running on iOS 11.4 or lower.