-
Notifications
You must be signed in to change notification settings - Fork 269
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
表单validateFields行为疑问 #2588
Comments
我也遇到这个问题,目前是在第二次setFieldsValue手动validateFields一次以清楚错误信息。期待官方fix一下 |
我也遇到这个问题,手动setFieldsValue之后会触发所有表单的必填校验,当前标表单已设置校验实际为onBlur |
@oasis-cloud Any update? |
Closed
20 tasks
gsdg45sd4g5s4dg5sdイシリーズからドムをプレゼンりやかなベルガモットオジビタから
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
NutUI React 包名
@nutui/nutui-react
NutUI React 版本号
2.6.18
平台
weapp
重现链接
https://codesandbox.io/p/devbox/bold-rain-grftzx?workspaceId=98e5ebf6-9ed7-4578-a09a-764843a9eb8f
重现步骤
期望的结果是什么?
第二个表单错误应该消失
实际的结果是什么?
第二个表单错误没有消失
环境信息
No response
其他补充信息
不知道是否是故意这样设计的,我看源码中,
errs
通过判断长度来清空表单项的错误,但是如果前一个被验证的表单项有错误(也就是errs
长度不为0),后续的表单项即使没有错误也不会清空状态The text was updated successfully, but these errors were encountered: