We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 61f3541 + 5e46c65 commit 864cc10Copy full SHA for 864cc10
src/typeahead/index.js
@@ -310,7 +310,7 @@ var Typeahead = createReactClass({
310
311
componentWillReceiveProps: function(nextProps) {
312
var searchResults = this.getOptionsForValue(this.state.entryValue, nextProps.options);
313
- var showResults = Boolean(searchResults.length);
+ var showResults = Boolean(searchResults.length) && this.state.isFocused;
314
this.setState({
315
searchResults: searchResults,
316
showResults: showResults
0 commit comments