jd-opensource / jd-opensource/taro-ui

textarea在ios中使用表情maxlength有问题

Open
#1,257 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

**问题描述**
![image](https://images.gitee.com/uploads/images/2020/1210/100826_bac0d52b_5009903.png)

**复现步骤**
1. 新建一个文本域
2. 最大长度设置为400
3. 在文字输入到390左右的时候一直输入表情
4. 会超出文本域的最大限制还能输入

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

**期望行为**
maxlength对表情也有作用

**报错信息**
对表情没有效果

**系统信息**
👽 Taro v3.0.17

undefined

Taro CLI 3.0.17 environment info:
System:
OS: macOS 11.0.1
Shell: 5.8 - /bin/zsh
Binaries:
Node: 12.16.1 - /usr/local/bin/node
Yarn: 1.22.0 - /usr/local/bin/yarn
npm: 6.13.4 - /usr/local/bin/npm
npmPackages:
@tarojs/components: 3.0.16 => 3.0.16
@tarojs/mini-runner: 3.0.16 => 3.0.16
@tarojs/react: 3.0.16 => 3.0.16
@tarojs/runtime: 3.0.16 => 3.0.16
@tarojs/taro: 3.0.16 => 3.0.16
@tarojs/webpack-runner: 3.0.16 => 3.0.16
babel-preset-taro: 3.0.16 => 3.0.16
eslint-config-taro: 3.0.16 => 3.0.16
react: ^16.10.0 => 16.14.0
taro-ui: ^3.0.0-alpha.3 => 3.0.0-alpha.3

**补充信息**

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.