-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Add a Form onChange Callback #3609
Comments
+1 |
1 similar comment
+1 |
@oliviercperrier does not we have already the onChange prop for the Form component?
|
This is useless if we are using third party input components. |
Hi, I agree it would be a nice feature. Meanwhile it's is possible to use https://formik.org/docs/api/useFormikContext Hope it helps |
Feature request
Current Behavior
Currently there is not way to detect changes globally on a Form. The only way to detect changes is to add a callback on every input fields within the form.
Desired Behavior
It would be very use full to have an
onValuesChange
callback function on the Form it self, pretty much like Ant Design does: hereSuggested Solution
When ever a
form.handleChange
is called, theonValuesChange
callback must be called.Who does this impact? Who is this for?
Would be use full to anyone.
I'm trying change the state of the submit button only when some values has changed and it would be much easier with this callback.
Describe alternatives you've considered
None
Additional context
None
The text was updated successfully, but these errors were encountered: