TextInput (IOS) : maxLength & multiline true = onChangeText multiple call #44566
Labels
Component: TextInput
Related to the TextInput component.
Needs: Triage 🔍
Newer Patch Available
Platform: iOS
iOS applications.
Description
I have noticed that when we have maxLength={number} and multiline={true}, if I manually modify my state with a long sentence, the onChangeText function is called 5 times, and furthermore, it modifies the initial value. Please take a look at the snack link I provided and see for yourself the value assigned to setDescription1 and the output value in the console.
Steps to reproduce
React Native Version
0.74.1
Affected Platforms
Runtime - iOS
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://snack.expo.dev/MAi9wJ0nAa6mk3BlwkFF-
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: