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
I want to disable my form submit button without adding an additional state on every form.
Add {isSubmitting: boolean} property to FormInstance type which would toggled by ant form internal state on form submission.
{isSubmitting: boolean}
FormInstance
The text was updated successfully, but these errors were encountered:
Can I work on this?
Sorry, something went wrong.
Yes,welcome to send PR.
Looking at the Form component code, it seems that the functionality should be added to rc-field-form and then update the package here in ant design.
Form
rc-field-form
Would you prefer to do that or extend the useForm hook here in ant design directly?
useForm
Yes, you should add feature to rc-field-form and update package.json in antd.
你可以自己在内部状态控制 提交表单button的状态(是否禁用)
Wgil
No branches or pull requests
What problem does this feature solve?
I want to disable my form submit button without adding an additional state on every form.
What does the proposed API look like?
Add
{isSubmitting: boolean}
property toFormInstance
type which would toggled by ant form internal state on form submission.The text was updated successfully, but these errors were encountered: