Skip to content
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

On iOS, TextInput stops responding to user input when maxLength > 5.5 quadrillion #48941

Open
maxpowa opened this issue Jan 24, 2025 · 4 comments · May be fixed by #48947
Open

On iOS, TextInput stops responding to user input when maxLength > 5.5 quadrillion #48941

maxpowa opened this issue Jan 24, 2025 · 4 comments · May be fixed by #48947
Labels
Component: TextInput Related to the TextInput component. Resolution: PR Submitted A pull request with a fix has been provided.

Comments

@maxpowa
Copy link

maxpowa commented Jan 24, 2025

Description

In iOS, the TextInput component stops responding to user input if maxLength is greater than 5.50 quadrillion (5500000000000000). The exact number is somewhere between 5.49 and 5.5 quadrillion, but I'll leave that as an exercise for the reader.

Steps to reproduce

  1. Add TextInput component
  2. Set maxLength prop, greater than 5500000000000000
  3. Attempt to use TextInput field to enter text

React Native Version

0.76.6

Affected Platforms

Runtime - iOS

Output of npx react-native info

System:
  OS: macOS 15.0.1
  CPU: (12) arm64 Apple M2 Pro
  Memory: 78.22 MB / 32.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 22.12.0
    path: ~/.local/share/mise/installs/node/22.12.0/bin/node
  Yarn:
    version: 4.6.0
    path: ~/.local/share/mise/installs/node/22.12.0/bin/yarn
  npm:
    version: 10.9.0
    path: ~/.local/share/mise/installs/node/22.12.0/bin/npm
  Watchman: Not Found
Managers:
  CocoaPods:
    version: 1.16.2
    path: ~/.local/share/mise/installs/ruby/3.3.6/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 24.0
      - iOS 18.0
      - macOS 15.0
      - tvOS 18.0
      - visionOS 2.0
      - watchOS 11.0
  Android SDK: Not Found
IDEs:
  Android Studio: 2024.2 AI-242.23339.11.2421.12700392
  Xcode:
    version: 16.0/16A242d
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 17.0.13
    path: ~/.local/share/mise/installs/java/zulu-17.54.21/bin/javac
  Ruby:
    version: 3.3.6
    path: ~/.local/share/mise/installs/ruby/3.3.6/bin/ruby
npmPackages:
  "@react-native-community/cli":
    installed: 16.0.2
    wanted: ^16.0.0
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.76.6
    wanted: 0.76.6
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: true
  newArchEnabled: true

Stacktrace or Logs

N/A

Reproducer

https://snack.expo.dev/9RnT_dmqTwVK8of5iVUJ-

Screenshots and Videos

No response

@react-native-bot
Copy link
Collaborator

Warning

Could not parse version: We could not find or parse the version number of React Native in your issue report. Please use the template, and report your version including major, minor, and patch numbers - e.g. 0.76.2.

@react-native-bot
Copy link
Collaborator

Warning

Could not parse version: We could not find or parse the version number of React Native in your issue report. Please use the template, and report your version including major, minor, and patch numbers - e.g. 0.76.2.

@maxpowa
Copy link
Author

maxpowa commented Jan 25, 2025

Not sure how I can fix the bot, I updated the description with the full version number, react-native 0.76.6

@github-actions github-actions bot added Needs: Attention Issues where the author has responded to feedback. and removed Needs: Author Feedback labels Jan 25, 2025
@maxpowa maxpowa changed the title TextInput stops responding to user input when maxLength > 5.49 quadrillion TextInput stops responding to user input when maxLength > 5.5 quadrillion Jan 25, 2025
@maxpowa maxpowa changed the title TextInput stops responding to user input when maxLength > 5.5 quadrillion On iOS, TextInput stops responding to user input when maxLength > 5.5 quadrillion Jan 25, 2025
@zhongwuzw
Copy link
Contributor

Hi , #48947 may fix this issue.

@migueldaipre migueldaipre added Resolution: PR Submitted A pull request with a fix has been provided. and removed Needs: Attention Issues where the author has responded to feedback. Needs: Version Info labels Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: TextInput Related to the TextInput component. Resolution: PR Submitted A pull request with a fix has been provided.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants