-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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 callbacks inconsistent order of onSelectionChange and onChange/onChangeText #45018
Comments
@cortinico Can you provide the PR that fixes this issue? |
Sorry I picked the wrong label |
Regarding this issue. This is the default iOS behaviour. Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-07-10.at.15.55.35.mp4Findings:
Solution:
For this issue:
I started debugging on this. |
@TheProBro. @cortinico
Added my findings in PR itself. |
Description
The order remains constant for almost every circumstance:
onChange -> onChangeText -> onSelectionChange
Here are some cases that i discovered in iOS (could be more)
Steps to reproduce
Snack
In textInput component, use multiline and console.log as callbacks for each of the functions in discussion, see the output
React Native Version
0.74.84
Affected Platforms
Runtime - iOS
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://snack.expo.dev/zhVuXAjkAi5BMHVKq__vG
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: