Skip to content

a-textarea存在auto-size属性时, 调用setRangeText无法生效并且光标会重置 #7096

@zhaozhongyu

Description

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

Version

4.0.0-rc.6

Environment

chrome, vue@next

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  1. 在textarea中输入任意字段, 如 我的名字
  2. 然后在名字前面输入括号(

What is expected?

此时监听事件会调用setRangeText设置右括号, 希望设置成功, 光标在左右括号内

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