Open imanshul opened 5 months ago
:warning: | Newer Version of React Native is Available! |
---|---|
:information_source: | You are on a supported minor version, but it looks like there's a newer patch available - 0.73.8. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases. |
This issue is waiting for author's feedback since 24 days. Please provide the requested feedback or this will be closed in 7 days.
Snack to reproduce : https://snack.expo.dev/coZ_oQ_slq87v8yIMImV4
Description
When adding textContentType in iOS with maxLength=10 the tap on suggestion gives irrelevant results.
Steps to reproduce
In TextInput try adding below props;
This will give mobile number suggestion to you, the mobile number sometimes have country code and spaces in between, when user tap on the mobile number the autofill results are not suitable.
For example: If mobile number is 88844 33322 having 11 characters the last digit will be trimmed suggestion: 88844 33322 result: 88844 3332
So we need a mechanism to trim out the spaces/country code before filling the same in the textinput. Currently onChangeText is called with trimmed result, so no way to format before calling onChangeText, when maxLength is set.
React Native Version
0.73.1
Affected Platforms
Runtime - iOS
Output of
npx react-native info
Stacktrace or Logs
Reproducer
Snack (https://snack.expo.dev/coZ_oQ_slq87v8yIMImV4)
Screenshots and Videos
No response