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

[TextInput] Maxlength bug in specific situations #22669

Closed
3 tasks done
ahce opened this issue Dec 15, 2018 · 1 comment
Closed
3 tasks done

[TextInput] Maxlength bug in specific situations #22669

ahce opened this issue Dec 15, 2018 · 1 comment
Labels
Bug Component: Text Component: TextInput Related to the TextInput component. Resolution: Locked This issue was locked by the bot.

Comments

@ahce
Copy link

ahce commented Dec 15, 2018

Environment

React Native Environment Info:
    System:
      OS: Windows 10
      CPU: (4) x64 Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz
      Memory: 4.29 GB / 11.87 GB
    Binaries:
      Yarn: 1.12.3 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
      npm: 6.4.1 - C:\Program Files\nodejs\npm.CMD
    IDEs:
      Android Studio: Version  3.1.0.0 AI-173.4907809
    npmPackages:
      react: 16.6.3 => 16.6.3
      react-native: 0.57.8 => 0.57.8

Description

In a specific situation maxLength don't works, when a special character is inserted between a number, a character and a letter: (maxLength: 5, value: 123-r) 123[insert here "&"]-r the result is 123&-
See the demo.

Reproducible Demo

TextInput MaxLength Bug

@dulmandakh
Copy link
Contributor

This is expected behaviors. maxLength work on characters, and doesn't distinguish between special char, number or letter.

@facebook facebook locked as resolved and limited conversation to collaborators Mar 19, 2020
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Mar 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Component: Text Component: TextInput Related to the TextInput component. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants