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

[Bug Report] Field 设置了 maxlength 之后,光标移动位置有问题 #13368

Open
HiWangyeah opened this issue Feb 27, 2025 · 0 comments
Open

Comments

@HiWangyeah
Copy link
Contributor

重现链接

https://codesandbox.io/p/devbox/vant-4-issue-template-forked-4jv37q?file=%2Fsrc%2FApp.vue%3A18%2C4&workspaceId=ws_5rNaeduf91JhANFczqnfkE

Vant 版本

4.8.1

描述一下你遇到的问题。

如果框中的内容为 emoji,达到 maxlength 数量,在末尾继续输入,光标会移动到前面的位置,而不是停留在末尾。

重现步骤

在输入框中的 🤣🤣🤣🤣🤣🤣🤣🤣🤣🤣 最后继续输入,光标会移动到第五个 emoji 的位置。

设备/浏览器

No response

@HiWangyeah HiWangyeah changed the title [Bug Report] Field 设置了 maxlength 之后,,光标移动位置有问题 [Bug Report] Field 设置了 maxlength 之后,光标移动位置有问题 Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant