Skip to content
New issue

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

TextareaItem 输入框中输入表情时,显示异常 #1085

Closed
Linkinzoo opened this issue Mar 30, 2017 · 2 comments
Closed

TextareaItem 输入框中输入表情时,显示异常 #1085

Linkinzoo opened this issue Mar 30, 2017 · 2 comments
Assignees
Labels

Comments

@Linkinzoo
Copy link

  • antd-mobile version(antd-mobile版本): 0.9.13
  • Browser (or mark react-native) and its version(浏览器或react-native版本):^15.4.2
  • Operating environment (e.g. OS name) and its version(操作系统版本或设备型号): iOS & Android

复现步骤:

  1. 使用组件:TextareaItem,添加参数count={140},限制输入字符为140个字。
  2. 运行程序,在输入框内输入表情。
    期待结果:输入框内的字符数量能按照count字段的参数进行限制(140/140);
    实际结果:输入框内的字符数量将每个表情识别1个字符,计数位置将表情识别为两个字符;输入133个文字和7个表情,计数位置将显示为:147/140;
    重现机率:必现。
    image
@silentcloud
Copy link
Contributor

@Linkinzoo 欢迎提供 PR

@benjycui
Copy link
Contributor

benjycui commented Apr 6, 2017

我就好奇如果这个是英文,又会怎么计算?

140 个字母么。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants