Skip to content

在表格中嵌套使用a-input,输入中文光标自动跳到文本末尾问题 #7374

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

Open
1 task
Jiasoh opened this issue Feb 22, 2024 · 0 comments
Open
1 task
Labels

Comments

@Jiasoh
Copy link

Jiasoh commented Feb 22, 2024

  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

3.2.20

Environment

正式

Reproduction link

https://3x.antdv.com/components/table-cn#components-table-demo-edit-cell

Steps to reproduce

1.在输入框中输入一段文本
2.将光标定位到文本前端或者文本中间任意位置(目的是要插入新内容)
3.切换中文输入法输一段中文(不要回车,移动鼠标选中匹配的中文)
4.光标自动会跳到文本末端

What is expected?

光标不要跳转至文本末端,而是在原本用户选择的位置插入选择的中文

What is actually happening?

移动鼠标选中输入的中文时光标自动跳到文本末端,原本期望文本前端插入新的文本


遇到这个bug的条件是,在a-table中嵌套了a-input或者a-textarea组件,才会出现光标自动跳转问题,如果单独使用a-input则没有,可以在表格-可编辑单元格文档案例中复现

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants