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

[textarea] 字数限制时带表情的情况长度计算有误 #2968

Open
melodysummer opened this issue Jul 1, 2024 · 2 comments
Open

[textarea] 字数限制时带表情的情况长度计算有误 #2968

melodysummer opened this issue Jul 1, 2024 · 2 comments
Labels
💭 discussion we are discussing need more info 需要更多信息理解 issue 的问题

Comments

@melodysummer
Copy link

tdesign-react 版本

重现链接

https://stackblitz.com/run

重现步骤

maxlength改为50
输入文本:我们的世界简介中华人民共和国❤️我啊12345556😁我合同法我们的你们话题简介中华人民共和国合同法 (50个字)
删除“法”, 中文输入❤️
应为51字长,但字数只显示50/50

期望结果

期望显示正确的字数 51/50

实际结果

50/50

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

Copy link
Contributor

github-actions bot commented Jul 1, 2024

👋 @melodysummer,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@HaixingOoO
Copy link
Collaborator

image
显示没错啊,在线链接CodeSandBox

@HaixingOoO HaixingOoO added 💭 discussion we are discussing need more info 需要更多信息理解 issue 的问题 labels Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💭 discussion we are discussing need more info 需要更多信息理解 issue 的问题
Projects
None yet
Development

No branches or pull requests

2 participants