Parent container has Save button to handle form changes (child).
Using withFormik(), how to avoid
@prajavk this is not a formik issue. When you want to submit a form via button outside form childs it has the following steps to do.
1- Set your form an "id" attribute
2- After that set button attribute "form" with your form id name
i.e
Please also read about ref forwarding. https://reactjs.org/docs/forwarding-refs.html
Closing due to long inactivity
Most helpful comment
@prajavk this is not a formik issue. When you want to submit a form via button outside form childs it has the following steps to do.
1- Set your form an "id" attribute
2- After that set button attribute "form" with your form id name
i.e
Codesandbox link