-
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
In IOS TextInput does not update style if copy and pasted string is bigger then maxLength #46458
Comments
|
|
@aureosouza thanks for the report! Can you check if the issues exists also in the New Architecture, please? |
@cipolleschi I enabled the new arch with |
@aureosouza thanks for testing this out. |
@aureosouza is it only iOS related? can you reproduce it on android? |
@elencho this is exclusive on iOS, it works correctly on Android |
Description
In IOS the TextInput component does not update properly the style when copy and pasted string is bigger then
maxLength
, issue does not happen on Android. In the minimal reproducible example, there is a simple TextInput that should change text color to red, if text length is bigger or equal then 100 characters. If we copy and paste (using paste with long press) a string longer then 100, the color does not update to red. If user removes and adds last character manually, we can see color changing correctly to red.Steps to reproduce
yarn && npx pod-install && yarn ios
React Native Version
0.75.2
Affected Platforms
Runtime - iOS
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/aureosouza/TextInputDemo
Screenshots and Videos
The text was updated successfully, but these errors were encountered: