fmoo / react-typeahead

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

Can we add a default option when there was no option? #170

Open JlineZen opened 8 years ago

JlineZen commented 8 years ago

I got a idea that whether we can option a API for the default option cause once we do not have any options in the options container,can we add a default option for the component. thanks.

zerkms commented 8 years ago

Why would not you do that in the parent component: it knows better about the context and how to handle it.