Skip to content

a-form表单中只有一个a-input和两个a-textarea时,一个input必填,一个textarea必填,input回车时,会触发所有校验 #8173

Open
@muyeluoluo

Description

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

Version

4.2.6

Environment

vue3

Reproduction link

https://next.antdv.com/components/form-cn

Steps to reproduce

1.写一个a-form,一个a-input为字段A和两个a-textarea为字段B和字段C
2.设置两条rules,字段A必填,字段B必填
3.在字段A的input回车
4.发生结果:a-form的两条校验被触发

What is expected?

不应该触发所有校验。

What is actually happening?

a-form的校验都被触发,但只要多写一个input,就不会产生这种情况。
ant-design-vue的3.x和4.x版本均有此问题

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions