We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@nutui/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),后续的表单项即使没有错误也不会清空状态
errs
The text was updated successfully, but these errors were encountered:
我也遇到这个问题,目前是在第二次setFieldsValue手动validateFields一次以清楚错误信息。期待官方fix一下
Sorry, something went wrong.
我也遇到这个问题,手动setFieldsValue之后会触发所有表单的必填校验,当前标表单已设置校验实际为onBlur
@oasis-cloud Any update?
oasis-cloud
Successfully merging a pull request may close this issue.
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: