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

Create option to set the default validate trigger #253

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

allimuu
Copy link

@allimuu allimuu commented Feb 18, 2019

If you want something other than onChange for the default validate trigger, it was a bit of a pain setting the validateTrigger on all the fields or overriding getFieldProps/getFieldDecorator. Now as an option to createForm we can set a different default validate trigger.

Rather than setting the validateTrigger on all the fields, if you want something different to onChange. Now as an option to createForm we can set a different default validateTrigger.
@allimuu
Copy link
Author

allimuu commented Feb 20, 2019

Hey @benjycui @afc163 is there any chance of taking a look at this soon? We'd really like to stay in sync with upstream of this and Antd. But it's a feature we need and overriding getFieldDecorator to do this everywhere is.. unappealing. Thanks!

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

Successfully merging this pull request may close these issues.

1 participant