ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

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

Open muyeluoluo opened this issue 6 months ago • 0 comments
trafficstars

  • [ ] 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版本均有此问题

muyeluoluo avatar May 15 '25 06:05 muyeluoluo