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设置最大长度,文本框仍可在非尾部光标处输入内容 #6391

Closed
ghost opened this issue Oct 10, 2023 · 3 comments · May be fixed by #6397
Closed

Textarea设置最大长度,文本框仍可在非尾部光标处输入内容 #6391

ghost opened this issue Oct 10, 2023 · 3 comments · May be fixed by #6397
Labels
bug need reproduce We cannot reproduce your problem

Comments

@ghost
Copy link

ghost commented Oct 10, 2023

Version of antd-mobile

v5.32.4

Operating system and its version

No response

Browser and its version

No response

Sandbox to reproduce

No response

What happened?

问题:
Textarea设置最大长度,文本框仍可在非尾部光标处输入内容,并对新的全部内容进行最大长度截取

期望行为:
达到最大长度时,无法输入新内容

Relevant log output

No response

@ghost ghost added the bug label Oct 10, 2023
@1587315093 1587315093 added the need reproduce We cannot reproduce your problem label Oct 12, 2023
@github-actions
Copy link
Contributor

Hi, yy-array.

Please provide a online reproduction so that we can help you troubleshoot the problem. You can create a demo by codesandbox or stackblitz.

我们需要你提供一个在线的重现实例,以便于我们帮你排查问题。你可以通过 codesandboxstackblitz 创建一个实例。

@ghost
Copy link
Author

ghost commented Oct 13, 2023

https://codesandbox.io/p/sandbox/inspiring-brahmagupta-khjcqy?file=%2Fsrc%2FApp.tsx%3A26%2C37
问题复现步骤和期望场景可在该链接中查看

@zbw-zbw
Copy link

zbw-zbw commented Oct 13, 2023

https://codesandbox.io/p/sandbox/inspiring-brahmagupta-khjcqy?file=%2Fsrc%2FApp.tsx%3A26%2C37 问题复现步骤和期望场景可在该链接中查看

好像确实有点问题,我来修复下? @1587315093

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug need reproduce We cannot reproduce your problem
Projects
None yet
2 participants