From 80f5881202bbc3aef587f76b9dfb1c4f90ae996b Mon Sep 17 00:00:00 2001 From: Zachary Hickman Date: Thu, 23 Jun 2016 10:53:15 -0400 Subject: [PATCH] force showResults to true when we get new results --- lib/typeahead/index.js | 3 ++- src/typeahead/index.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/typeahead/index.js b/lib/typeahead/index.js index 74f99f6b..24b1f224 100644 --- a/lib/typeahead/index.js +++ b/lib/typeahead/index.js @@ -224,7 +224,8 @@ var Typeahead = React.createClass({ this.timeout = setTimeout(() => { this.setState({ searchResults: this.getOptionsForValue(value, this.props.options), - hasRendered: true + hasRendered: true, + showResults: true }); }, this.props.delayMillis); }, diff --git a/src/typeahead/index.js b/src/typeahead/index.js index 43ac072b..69900539 100644 --- a/src/typeahead/index.js +++ b/src/typeahead/index.js @@ -237,7 +237,8 @@ var Typeahead = React.createClass({ this.timeout = setTimeout(() => { this.setState({ searchResults: this.getOptionsForValue(value, this.props.options), - hasRendered: true + hasRendered: true, + showResults: true }); }, this.props.delayMillis); },