jd-opensource / jd-opensource/taro-ui

input clear属性会在输入一个字符后收起键盘

Open
#1,199 7 comments 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组件时,增加clear属性会导致输入第一个字符时候会把键盘收起

**复现步骤**

// 会触发此BUG
```js

```

// 不会触发此BUG
```js

```

**期望行为**
期望增加clear属性不会影响到键盘的显示与隐藏

**报错信息**

**系统信息**
Taro CLI 3.0.8 environment info:
System:
OS: macOS 10.15.5
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 11.15.0 - ~/.nvm/versions/node/v11.15.0/bin/node
Yarn: 1.17.3 - ~/.nvm/versions/node/v11.15.0/bin/yarn
npm: 6.10.2 - ~/.nvm/versions/node/v11.15.0/bin/npm
npmPackages:
@tarojs/components: 3.0.8 => 3.0.8
@tarojs/mini-runner: 3.0.8 => 3.0.8
@tarojs/react: 3.0.8 => 3.0.8
@tarojs/runtime: 3.0.8 => 3.0.8
@tarojs/taro: 3.0.8 => 3.0.8
@tarojs/webpack-runner: 3.0.8 => 3.0.8
babel-preset-taro: 3.0.8 => 3.0.8
eslint-config-taro: 3.0.8 => 3.0.8
react: ^16.10.0 => 16.13.1
taro-ui: ^3.0.0-alpha.2 => 3.0.0-alpha.2
npmGlobalPackages:
typescript: 3.5.3

- Taro 版本 [3.0.8]
- Taro UI 版本 [3.0.0-alpha.2]
- 报错平台 [weapp]

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.