react-typeahead icon indicating copy to clipboard operation
react-typeahead copied to clipboard

Custom value

Open joeywisse opened this issue 9 years ago • 3 comments

I've been looking for a way to just type wildly and hit enter to add custom tokens which are not supplied as options. Is this currently possible?

And thank you for this module.

joeywisse avatar Aug 20 '15 13:08 joeywisse

Found the answer.

add allowCustomValues={1}

Thank you

joeywisse avatar Aug 20 '15 13:08 joeywisse

@joeywisse - apologies for not getting back to you sooner.

Does that API work well for you, or does it need any tweaks? Was there anything in the documentation we could have done better to make this more discoverable?

fmoo avatar Aug 20 '15 16:08 fmoo

Working on a React project, this module fits in nicely. After trying with bootstrap-tokenizer this was really much easier to get started. Currently still working with the module to get my product finished, i'll let you know when I run into problems. Thank you.

Yesterday I searched the module code to find out about this functionality.

Correct me if I'm wrong but I didn't find "allowCustomValues" on this git's front-page. It coult be placed in the API section, e.g. near the "props.defaultValue".

joeywisse avatar Aug 21 '15 06:08 joeywisse