jd-opensource / jd-opensource/taro-ui

iphone数字输入框,修改数字,会失焦到文本结尾

Open
#1,220 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.7k
Forks
740
PR merge metrics
No merged PRs in 30d

Description

**问题描述**
AtInput type=“number” ,在iphone中(不区别ios版本),修改数字,会自动对焦到末尾

**复现步骤**

1. 在数字输入框,输入一串数字
2. 将光标移到中间,任意修改输入或删除一个数字

```js
// 这里可以贴代码

```

**期望行为**
不会失焦,光标能停留在原来位置

**报错信息**

**系统信息**
- Taro 版本 [e.g. v.2.0.3]
- Taro UI 版本 [e.g. v.2.3.4]
- 报错平台 [h5]

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.