title: Formik value is undefined
body: <p>Why I can't get the data every time I change the field? can somebody help me to configure this out? did I miss something in my code? I just want that if the user clicks the submit, it will capture what I inputted in TextField and Select</p>
  <pre><code>  const [ author, setAuthor] = useState('');
    const [ datef, setDateF] = useState('');
    const [ datet, setDateT] = useState('');
    const handleChangeAuthor = (event) =&gt; {
      console.log(&quot;handleChangeAuthor: &quot;, event)
      setAuthor(name)
    };
    const handleChangesetDateF = (event) =&gt; {
      console.log(&quot;handleChangesetDateF: &quot;, event)
      setDateF(name)
    };
    const handleChangesetDateT = (event) =&gt; {
      console.log(&quot;handleChangesetDateT: &quot;, event)
      setDateT(name)
    };
  
  
  const handleSubmit= async(valuesToSubmit) =&gt;
  {
    console.log(&quot;valuesToSubmit: &quot;, valuesToSubmit)
  }
  
  
   ............
    &lt;Formik
       initialValues={{ 
       strdatefrom:datef,
       strdateto:datet,
       intuserauthorid:author,
       intfmdocumentclassificationsid:selecteddocClassification,
       intlimit:&quot;100&quot;,
       intoffset:&quot;0&quot;
      }}
      onSubmit={(values) =&gt;{ console.log(&quot;submit&quot;); handleSubmit(values)}}
       &gt;
    {({ handleChange, handleBlur, handleSubmit, values, errors, isValid,touched,setFieldValue }) =&gt; (
       &lt;&gt;
  
  &lt;Grid container&gt;
     &lt;Grid xs={12} className={classes.grid}&gt;
        &lt;TextField
           id=&quot;date&quot;
           label=&quot;Date from&quot;                  
           type=&quot;date&quot;
           name=&quot;datet&quot;
           onChange={handleChangesetDateF(value.datet)}
           defaultValue=&quot;2017-05-24&quot;
           name=&quot;datef&quot;
           className={classes.textField}/&gt;
     &lt;/Grid&gt;
     &lt;Grid xs={12} className={classes.grid}&gt;
         &lt;TextField
            id=&quot;date&quot;
            label=&quot;Date to&quot;
            type=&quot;date&quot;
            name=&quot;datef&quot;
            onChange={handleChangesetDateT(value.datef)}
            defaultValue=&quot;2017-05-24&quot;
            className={classes.textField}/&gt;
      &lt;/Grid&gt;
      &lt;Grid xs={12} className={classes.grid}&gt;
          &lt;FormControl variant=&quot;outlined&quot; className={classes.formControl}&gt;
              &lt;InputLabel htmlFor=&quot;outlined-age-native-simple&quot;&gt;Author&lt;/InputLabel&gt;
                 &lt;Select
                     name=&quot;author&quot;
                     value={author}
                     onChange={handleChangeAuthor(value.author)}
                     label=&quot;Author&quot;&gt;
                   {users}
                   &lt;/Select&gt;
              &lt;/FormControl&gt;
            &lt;/Grid&gt;
           &lt;/&gt;
                )}
              &lt;/Formik&gt;
  </code></pre>
  <blockquote>
  <p>from this line please ignore this message, I do this message so that i
  can submit a question here</p>
  </blockquote>