Skip to content

After textarea sets autoSize, the cursor will move to the end of continuous input of text. #5922

@qpxtWhite

Description

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

Version

3.3.0-beta.2

Environment

win10\chrome\vue3

Reproduction link

Edit on CodeSandbox

Steps to reproduce

1、a-textarea设定 :auto-size="{ minRows: 2, maxRows: 5 }"
2、在输入框中将光标定位到文案中间
3、连续快速的输入中文
a

What is expected?

正常在文案中间插入字符

What is actually happening?

光标会移动到最后,导致输入位置错误

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions