Skip to content

input problem with trim modifier #4951

Closed
@tracy2zhang

Description

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

Version

3.0.0-alpha.13

Environment

vue3.2.16, chrome 95.0.4638.69,macos12.0.1

Reproduction link

Edit on CodeSandbox

Steps to reproduce

1.给input设置trim修饰符(v-model:value.trim="value")
2.输入任意字符(包括空格),比如" aaaa "

What is expected?

可以正常输入" aaaa ",并且绑定的value值也被trim为"aaaa"

What is actually happening?

无法输入空格

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