From 5ec239dd9ea826c7b97a94dec5bfed4a855f1aef Mon Sep 17 00:00:00 2001 From: okasha93 Date: Wed, 25 Apr 2018 19:23:37 +0200 Subject: [PATCH] Click Outside should Close Options list Edit _onBlur function setting showResults to False to hide Options Menu Issue #241 --- src/typeahead/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/typeahead/index.js b/src/typeahead/index.js index 7e231041..92c1e1d7 100644 --- a/src/typeahead/index.js +++ b/src/typeahead/index.js @@ -360,7 +360,7 @@ var Typeahead = createReactClass({ }, _onBlur: function(event) { - this.setState({isFocused: false}, function () { + this.setState({isFocused: false, showResults: false}, function () { this._onTextEntryUpdated(); }.bind(this)); if ( this.props.onBlur ) {