fmoo / react-typeahead

Pure react-based typeahead and typeahead-tokenizer
ISC License
677 stars 232 forks source link

Show when showOptionsWhenEmpty is true only if the input is focused #195

Closed gregeinfrank closed 8 years ago

gregeinfrank commented 8 years ago

There is an config option for showOptionsWhenEmpty, but the problem is there is no way to hide the options if you use it. What we really want is to show the options when you click into the input (on focus) if there is no input text.

gregeinfrank commented 8 years ago

@fmoo can you please take a look?