Closed nicoecheza closed 9 years ago
Looks like setEntryText
method can be used for this purpose.
...
onSelect(item) {
this.refs.typeahead.setEntryText('');
},
render() {
return (
<Typeahead
ref="typeahead"
onOptionSelected={this.onSelect}
...
Thanks, this worked.
Hi, I'm trying to reset the value of the input after an option is selected. Is there an easy way to solve this? thanks!