On Android, the onKeyPress callback returns the wrong key value when the TextInput has the maxLength property #30747
Labels
Bug
Component: TextInput
Related to the TextInput component.
Impact: Platform Disparity
Platform: Android
Android applications.
Resolution: PR Submitted
A pull request with a fix has been provided.
Stale
There has been a lack of activity on this issue and it may be closed soon.
Description
In Android, when a TextInput with the maxLength property is "full"(that is, the length of the input is equal to the maximum), the onKeyPress event will return the last character in the input.
React Native version:
0.63.3
Steps To Reproduce
Expected Results
onKeyPress should return the key that was actually pressed.
This behaviour only happens in Android, and can be seen in the following snack:
https://snack.expo.io/PuyXgucEf
The text was updated successfully, but these errors were encountered: