Skip to content
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

mapPropsToFields documentation #15769

Closed
1 task
vanshady opened this issue Mar 31, 2019 · 2 comments
Closed
1 task

mapPropsToFields documentation #15769

vanshady opened this issue Mar 31, 2019 · 2 comments
Labels
📝 Documentation help wanted The suggestion or request has been accepted, we need you to help us by sending a pull request.

Comments

@vanshady
Copy link
Contributor

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

What problem does this feature solve?

It occurs to me that many users encounter the problem that when using mapPropsToFields, the form can't getFieldsErrors like before. After some research, it looks like this is by design, but it's not clearly reflected in the documentation and demo.

很多用户都遇到了如果使用mapPropsToFields,error需要手动处理的问题。我查看了各种issues发现这是by design的行为,然而demo和文档里并没有很清晰的体现这个行为,请问可否更新文档注明?

What does the proposed API look like?

At least add a line for mapPropsToFields, saying "This will also intercept errors, and you need to map errors to props to manually show errors."

@vanshady
Copy link
Contributor Author

For reference, #13355 #13071 #9561 and so on

@ycjcl868
Copy link
Contributor

ycjcl868 commented Apr 1, 2019

PR welcome, enhance the components-form-demo-global-state using onFieldsChange handle errors.

@afc163 afc163 added the help wanted The suggestion or request has been accepted, we need you to help us by sending a pull request. label Apr 1, 2019
@afc163 afc163 closed this as completed Apr 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📝 Documentation help wanted The suggestion or request has been accepted, we need you to help us by sending a pull request.
Projects
None yet
Development

No branches or pull requests

4 participants