jd-opensource / jd-opensource/taro-ui
taro-ui 3.0.0-alpha.3 AtInput 输入组件 type="number" 或 type="phone" 在iOS上可输入其他字符
Open
- Dominant language
- TypeScript
- Stars
- 4.7k
- Forks
- 740
- PR merge metrics
- No merged PRs in 30d
Description
**问题描述**
AtInput 组件 type="phone" 或 type="number" 或 type="digit" 输入框仍可以输入非数字的字符
**复现步骤**
1. iOS 系统,在其他输入框将输入法切换至第三方输入法
2. 在 taro type="number" 或 type="phone" 的输入框内可输入任意文字
3. 微信小程序上 taro-ui 的示例小程序也存在此问题,以下有附图
```tsx
handleCodeInput(val)}>
```
**期望行为**
在type="number" 或 type="phone" 或 type="digit" 的AtInput中,输入其他内容时,输入框不保存任何内容
**报错信息**

Contributor guide
Assessment
This issue has not been assessed yet.