formik
formik copied to clipboard
The `onReset` calling is lost again when I want to reset form mannully with `handleReset` or `resetForm`.
Bug report
The onReset calling is lost again when I want to reset form mannully with handleReset or resetForm.
Current Behavior
It only clear the dirty form input without calling onReset callback method. It may happen in #2191 before.
Your environment
| Software | Version(s) |
|---|---|
| Formik | 2.2.9 |
It looks like triggering resetForm manually doesn't invoke the onReset handler :/
I'm on version 2.2.9 and the onReset callback triggers after an onReset call in my usage. However, the values passed to the reset callback seem to be the initialValues. I was expecting values to match the values that the form was just reset to. Is my assumption incorrect, or is this a bug?
Yes, It is happening to me also in version 2.2.9