-
-
Notifications
You must be signed in to change notification settings - Fork 49.1k
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: e.target.setSelectionRange not work #49016
Labels
Comments
Start a new pull request in StackBlitz Codeflow. |
效率真快 赞👍 |
antd 5.17.4 里面 rc-textarea 1.7.0 还是依赖的 rc-input 1.5.0, 大佬能不能把input相关的 rc-input依赖都更新到1.5.1 @zombieJ |
@OCISHY 移除 lock 文件重新安装 node_modules 即可。 |
https://github.com/react-component/textarea/blob/master/package.json |
~1.5.0 是包含 1.5.1 的,你按照我的建议做操作了么? |
lock和node_moduels都要删 |
解决了 thx 是因为组件 peerdep 的 rc-input没带~符号 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reproduction link
Steps to reproduce
在输入框中输入内容 onChange中执行 setSelectionRange 不会重置光标位置
What is expected?
希望 setSelectionRange 生效,可以充值光标位置
What is actually happening?
setSelectionRange 不生效
在 antd@5.6.1 中 setSelectionRange 和 selectionStart 都可以工作,在antd@5.12.7 中两者都不能工作,在最新版 antd@5.17.3 中selectionStart 正常, 应该和 issue #47779 问题类似
The text was updated successfully, but these errors were encountered: