interface: reset touched in FormikOnBlur

This commit is contained in:
Liam Fitzgerald 2020-11-06 14:21:38 +10:00
parent dbda698a65
commit 0830c861fb
No known key found for this signature in database
GPG Key ID: D390E12C61D1CFFB

View File

@ -15,7 +15,7 @@ export function FormikOnBlur<
) {
const { values } = formikBag;
formikBag.submitForm().then(() => {
formikBag.resetForm({ values });
formikBag.resetForm({ values, touched: {} });
});
}
}, [