Skip to content

The actual performance of the validateField method of useForm is inconsistent with the document description. (The actual performance of the validateField method of useForm is inconsistent with the document description.) #4536

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

Closed
1 task done
tt-sevth opened this issue Aug 17, 2021 · 2 comments
Labels

Comments

@tt-sevth
Copy link

tt-sevth commented Aug 17, 2021

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

Version

2.2.6

Environment

mac 11.2.3, chrome 92.0 vue 3.0

Reproduction link

https://github.com/sevth-developer/antdv-bug-report.git

Steps to reproduce

  1. Don't input anything, click test2 button
  2. enter something, click test2 button

What is expected?

  • The validate passed should be reflected in then.
  • 校验通过应该在 then 中体现。

What is actually happening?

  • Regardless of whether the rule is validated or not, the validateField method will always reflect the result in the catch.
  • validateField 方法不管规则验证与否,结果始终在 catch 的体现。

  • I don't know how this is done here.I don't know if the documentation is misleading, this is how it works.
  • 这个链接里的使用方法是在 catch 中处理的。感觉像是我被文档误导了,这个方法就是在 catch 中处理。
@github-actions github-actions bot changed the title The actual performance of the validateField method of useForm is inconsistent with the document description.(useForm 的 validateField 方法实际表现与文档描述不一致。) The actual performance of the validateField method of useForm is inconsistent with the document description. (The actual performance of the validateField method of useForm is inconsistent with the document description.) Aug 17, 2021
@tangjinzhou
Copy link
Member

validate 就够了吧
validateField 不推荐使用

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants