Skip to content

When using a-input, v-model:value.trim="xxx" will make it impossible to enter spaces. I saw that it is possible to use v-model.trim="xxx" on the native input. It is trimmed in the change event, not in the input event.  #4142

@yuan2022

Description

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

Version

2.1.4

Environment

Chrome/90.0.4430

Reproduction link

https://github.com/yuan2022/vue-ant-input-issue.git

Steps to reproduce

使用a-input组件,加上trim修饰符

What is expected?

可以跟原生input的trim保持一致,在change后再处理空格,使得可以输入空格符

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