jaredpalmer / formik

Build forms in React, without the tears 😭
https://formik.org
Apache License 2.0
33.98k stars 2.79k forks source link

CreatableSelect create tag/option in multiselect with Formik #2131

Closed kahboom closed 4 years ago

kahboom commented 4 years ago

❓Question

Hey everyone. I can't seem to figure out what I'm doing wrong, but I'm trying to use CreatableSelect from react-select, where you can type in a new tag/option that doesn't already exist in a multiselect drop-down. The option to create doesn't appear when you type, just "No options".

Sandbox here - it's the last dropdown of the three.

Any help/pointers would greatly be appreciated. Thanks!

maurofsc commented 4 years ago

just change the import

import Select from "react-select"; to import Select from "react-select/creatable";

kahboom commented 4 years ago

@maurofsc Yes I noticed this mistake a few months ago and forgot about this issue completely. 😂 Thanks !