title: Automatically sanitize values in Formik without validation error
body: <p>Formik recommends using Yup to validate data, so basic form looks like this:</p>
  
  <pre><code>import React from 'react';
  import { Formik, Form, Field } from 'formik';
  import * as Yup from 'yup';
  
  const SignupSchema = Yup.object().shape({
    firstName: Yup.string()
      .min(2, 'Too Short!')
      .max(50, 'Too Long!')
      .required('Required'),
    lastName: Yup.string()
      .min(2, 'Too Short!')
      .max(50, 'Too Long!')
      .required('Required'),
    email: Yup.string()
      .email('Invalid email')
      .required('Required'),
  });
  
  export const ValidationSchemaExample = () =&gt; (
    &lt;div&gt;
      &lt;h1&gt;Signup&lt;/h1&gt;
      &lt;Formik
        initialValues={{
          firstName: '',
          lastName: '',
          email: '',
        }}
        validationSchema={SignupSchema}
        onSubmit={values =&gt; {
          // same shape as initial values
          console.log(values);
        }}
      &gt;
        {({ errors, touched }) =&gt; (
          &lt;Form&gt;
            &lt;Field name="firstName" /&gt;
            {errors.firstName &amp;&amp; touched.firstName ? (
              &lt;div&gt;{errors.firstName}&lt;/div&gt;
            ) : null}
            &lt;Field name="lastName" /&gt;
            {errors.lastName &amp;&amp; touched.lastName ? (
              &lt;div&gt;{errors.lastName}&lt;/div&gt;
            ) : null}
            &lt;Field name="email" type="email" /&gt;
            {errors.email &amp;&amp; touched.email ? &lt;div&gt;{errors.email}&lt;/div&gt; : null}
            &lt;button type="submit"&gt;Submit&lt;/button&gt;
          &lt;/Form&gt;
        )}
      &lt;/Formik&gt;
    &lt;/div&gt;
  );
  </code></pre>
  
  <p>What I need instead is a way to sanitize data without showing a validation error.</p>
  
  <p>For example, a number field that can be a number from 1 to 10. If user enters 20 - it should automatically change to 10 (without showing validation errors).</p>
  
  <p>Is there a way to customize Yup or Formik so form values are updated automatically?</p>