title: Cannot read property 'type' of undefined while using react-select with formik
body: <p>I'm building a form with an auto filling text box using react-select and formik.</p>
  
  <pre><code>&lt;Formik
      initialValues={{
          assignedTo: task.assignedTo,
      }}
      onSubmit={(values) =&gt; {
          const updatedTask = { ...task, ...values };
          editTask(updatedTask);
      }}
      render={({ handleSubmit, handleChange, values }) =&gt; (
          &lt;form&gt;
              &lt;Select type="text" name="assignedTo" options={options} onChange={handleChange} value={{ value: task.assignedTo, label: task.assignedTo }} /&gt;
          &lt;/form&gt;
      })
  /&gt;
  </code></pre>
  
  <p>It throws an error <code>Cannot read property 'type' of undefined</code>
  <a href="https://i.stack.imgur.com/2RJkJ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/2RJkJ.png" alt="enter image description here"></a></p>
  
  <p>How to fix this and handle react-select in formik?</p>