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

[Input&Textarea] 设置自动聚焦光标位置不对 #3355

Open
2ue opened this issue Feb 5, 2025 · 1 comment
Open

[Input&Textarea] 设置自动聚焦光标位置不对 #3355

2ue opened this issue Feb 5, 2025 · 1 comment
Labels
to be published fixed, not be published

Comments

@2ue
Copy link
Contributor

2ue commented Feb 5, 2025

tdesign-react 版本

1.10.5

重现链接

https://stackblitz.com/edit/kgwcyq8u?file=src%2Fdemo.tsx

重现步骤

点击【显示textarea】按钮

期望结果

输入框有默认值,设置了autofocus后,光标位置在文字的最后

实际结果

输入框有默认值,设置了autofocus后,光标位置没有在最后

框架版本

No response

浏览器版本

No response

系统版本

No response

Node版本

No response

补充说明

No response

Copy link
Contributor

github-actions bot commented Feb 5, 2025

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

@uyarn uyarn added the to be published fixed, not be published label Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to be published fixed, not be published
Projects
None yet
Development

No branches or pull requests

2 participants