formik icon indicating copy to clipboard operation
formik copied to clipboard

The `onReset` calling is lost again when I want to reset form mannully with `handleReset` or `resetForm`.

Open superyangchuan opened this issue 3 years ago • 1 comments

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

superyangchuan avatar Mar 17 '22 04:03 superyangchuan

It looks like triggering resetForm manually doesn't invoke the onReset handler :/

jowo-io avatar Aug 24 '22 07:08 jowo-io

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?

ifsimicoded avatar Oct 21 '22 23:10 ifsimicoded

Yes, It is happening to me also in version 2.2.9

MohamedHegab avatar Mar 20 '23 14:03 MohamedHegab