We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
问题描述 无法限制 input 的输入
复现步骤
handleInput (stateName, value) { const regexp = /[^a-zA-Z]+/g; const newValue = value.replace(regexp, ''); this.setState({ [stateName]: newValue }) return newValue }
// 这里可以贴代码
期望行为 无法输入特殊字符 报错信息 可以输入 系统信息 👽 Taro v1.2.20
Taro CLI 1.2.20 environment info: System: OS: macOS 10.14.4 Shell: 5.3 - /bin/zsh Binaries: Node: 8.15.1 - ~/.nvm/versions/node/v8.15.1/bin/node npm: 6.9.0 - ~/.nvm/versions/node/v8.15.1/bin/npm
补充信息
The text was updated successfully, but these errors were encountered:
你好,你的写法有误,看这个问题 NervJS/taro#2642 (comment)
Sorry, something went wrong.
没有吧,我 return 了这个 value 呀
这个是可以的,如果不行试试升级版本
不行呀,还是有这个问题,onBlur事件
No branches or pull requests
问题描述
无法限制 input 的输入
复现步骤
// 这里可以贴代码
期望行为
无法输入特殊字符
报错信息
可以输入
系统信息
👽 Taro v1.2.20
Taro CLI 1.2.20 environment info:
System:
OS: macOS 10.14.4
Shell: 5.3 - /bin/zsh
Binaries:
Node: 8.15.1 - ~/.nvm/versions/node/v8.15.1/bin/node
npm: 6.9.0 - ~/.nvm/versions/node/v8.15.1/bin/npm
补充信息
The text was updated successfully, but these errors were encountered: