-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
[Bug Report] Input word limit value not correct #6127
Comments
😄!!! |
I have already created a new pull request to fixed and test it . |
I think it's by design. |
When I set maxlength to 10 and show-word-limit, input |
@sxzz @asdjgfr I think we should take @asdjgfr's proposal, since the emoji '👩👩👧' is constructed by |
Can we merge this pr to close this issue? I have some problems in my project with this issue😂 |
IMHO, I think the behavior should be consistent with JavaScript.
|
But for users, it can be typed like Chinese characters, also delete it with only one press. |
FYI, I think it's correct behavior. Even though we change the rule to measure the length of the string that contains emoji characters to make the result expected to us, it's very possible that the database can't store the string as expected length. They just look like "one character". See also #6588 (comment). |
@plainheart |
closed. My opinion #6588 (comment) |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. 此 issue 已被自动锁定,因为关闭后没有任何近期活动。如果有相关 bug,请重新创建一个新 issue。 |
Element Plus version
2.0.2
OS/Browsers version
Windows 11
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36
Vue version
3.2.31
Reproduction Link
https://codepen.io/asdjgfr/pen/LYOeZGK
Steps to reproduce
paste or input some emoji such as 👩👩👧👧 or 🤰🏻
What is Expected?
👩👩👧👧 or 🤰🏻 should be calculated as 1
What is actually happening?
👩👩👧👧 compute as 7
🤰🏻 compute as 2
The text was updated successfully, but these errors were encountered: