-
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
[0.54] [iOS] Selection jumps to end of TextInput on every change #18341
Comments
me too |
I think this happens only for multiline |
This seems to be causing other glitches, especially regarding how auto-correct detects changes. It only happens on multiline indeed. Any updates on the issue? |
Update - this solved my problems: |
I am also getting this. I'm on react-native v0.55.4. When I hit return two times and returning back to my previous text, letters are capitalized every time. Your code did fix the problem, but it would be nice if they fix it. |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions. |
this is still broken, afaik |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions. |
this is still broken, afaik |
Closing, because there's no recent activity under the issue. @akalin-keybase if it still doesn't work for you, please create a new issue with a minimal reproduction we can investigate. |
If #18341 (comment) did fix, this remains an issue for Expo users as SDK 33 uses react-native 0.59 |
Same issue on rn 0.61.2, please reopen to this issue @thymikee @jeffreybrowning |
Me too, this happened on ios, rn 0.61.3 |
I unfortunately do not have the power to reopen. Only commenting for 👀 |
On version
0.54.2
on iOSWhen typing in a
TextInput
with a controlledvalue
prop, multipleonSelectionChange
events fires.You don't always see the flickering when rendering, but this can cause problems if you have a very long
TextInput
or use theselection
prop in other ways.Environment
Environment:
OS: macOS High Sierra 10.13.3
Node: 9.8.0
Yarn: 1.5.1
npm: 5.6.0
Watchman: 4.9.0
Xcode: Xcode 9.2 Build version 9C40b
Android Studio: 3.0 AI-171.4443003
Packages: (wanted => installed)
react: ^16.3.0-alpha.1 => 16.3.0-alpha.1
react-native: 0.54.2 => 0.54.2
Expected Behavior
One
onSelectionChange
event is fired and cursor doesn't jump to end and back.Actual Behavior
For every keystroke there is one instant correct event, then the new value goes through
setState
and renders down into thevalue
prop again. This causes two more events: one where selection is at end of the string, followed by one correct event.Steps to Reproduce
The code I used to test is in this snack: https://snack.expo.io/HJaZucVYf
Use that code with
v0.54.2
to reproduceThe text was updated successfully, but these errors were encountered: