Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
1 task
muyeluoluo opened this issue May 15, 2025 · 0 comments

Comments

@muyeluoluo
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant