You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The TextInputonKeyPress event handler receives an unexpected Backspace event when multiline is true. The exact behavior varies between iOS 15 and iOS 16:
iOS 15: The Backspace event is received after value is reset to an empty string
iOS 16: The Backspace event is received on EVERY change AND when value is reset to an empty string
changed the title [-]iOS: Multiline TextInput onKeyPress event handler receives a Backspace event after every change[/-][+]iOS: Multiline TextInput onKeyPress event handler unexpectedly receives a Backspace event[/+]on Jun 19, 2023
Activity
[-]iOS: Multiline TextInput onKeyPress event handler receives a Backspace event after every change[/-][+]iOS: Multiline TextInput onKeyPress event handler unexpectedly receives a Backspace event[/+]rodrigoeidelvein commentedon Jun 19, 2023
Same issue here
Pranav-yadav commentedon Jun 21, 2023
Cc: @NickGerleman
gbalduzzi commentedon Jun 28, 2023
I'm having the same issue on iOS 16.4 with a single line textfield.
Pressing a random key, such as 'a' results in the following log:
I'm guessing it's related to iOS 16.4, because some of my components that were working before are now broken
My current clunky workaround is to check for the distance between events, under 100 milliseconds I ignore the Backspace:
chadders404 commentedon Jun 28, 2023
I'm also having this problem on a physical iPhone 11 Pro running iOS 16.1.1. My project is using Expo. The behaviour does not occur on Android.
mokhtarHamdoune commentedon Aug 19, 2023
I have the same issue, after each key press event of the TextInput component, I have a Backspace.
LOG FLOG BackspaceReact Native: 0.71.6
IOS: 16.4
tibbe commentedon Sep 19, 2023
We also seem to get duplicated Enter key presses.
pee0803 commentedon Nov 23, 2023
Same issue here, but with
multiline = false. And also I hit on return key in my iOS simulator, it does not show any eventvinaykumar0339 commentedon Dec 4, 2023
same here in 0.72.7 version
raynox commentedon Jan 23, 2024
I experience the same issue
React Native: 0.70.10
iOS: 17.2, simulator
chadders404 commentedon Apr 8, 2024
I am still experiencing this issue.
iOS 17.4.1 , iPhone 11
React Native: 0.73.6
Expo Managed Workflow
Expo SDK: 50.0.14
Has anyone got more information or found a way around this problem?
7 remaining items
tibbe commentedon Mar 18, 2025
Still happens.
gaoag commentedon Apr 1, 2025
still happening. anybody get any progress here?
react-native-bot commentedon Sep 29, 2025
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.
tibbe commentedon Sep 29, 2025
Still an issue
react-native-bot commentedon Mar 29, 2026
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.
pxpeterxu commentedon Mar 29, 2026
We recently updated our app to React Native version 0.81, and this issue no longer seems to happen:
This issue can likely be closed now. It likely got changed in some refactor of how the TextInput component works.
react-native-bot commentedon Sep 26, 2026
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.
react-native-bot commentedon Oct 3, 2026
This issue was closed because it has been stalled for 7 days with no activity.