-
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
The onChangeText and onChange events on a TextInput fire twice on Android #45513
Comments
@kadikraman Is this happening in iOS also? |
Nope, I was only able to reproduce it on Android. |
@kadikraman I checked this issue, and it is reproducible in react-native latest version: 0.74.3 as mentioned by you. But I am not able to reproduce it in current |
Interesting, same here by the looks of it: I can't reproduce it on the tester app in the react native repo 🤔 |
@kadikraman We can look into the diff between these codes then or wait for new version to be published |
Could you folks try your reproducer |
Thanks for the very complete issue @kadikraman. I've just tried to reproduce this on 0.75.0-rc.6, and it seems to have been resolved in the newer release: CleanShot.2024-08-01.at.12.01.24.mp4I'll try figure out what change has fixed this. |
The fix for this is #44479, we should probably pick this in the next release. |
Description
With the new architecture enabled, the
onChangeText
andonChange
events on a TextInput fire twice on Android.Steps to reproduce
yarn android
React Native Version
0.74.3
Affected Platforms
Runtime - Android
Areas
Fabric - The New Renderer
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/kadikraman/new-arch-text-input-bug
Screenshots and Videos
Screen.Recording.2024-07-18.at.11.20.20.mov
The text was updated successfully, but these errors were encountered: