Skip to content

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

Open
@Jiasoh

Description

@Jiasoh
  • 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则没有,可以在表格-可编辑单元格文档案例中复现

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions