Skip to content

Commit

Permalink
Click Outside should Close Options list
Browse files Browse the repository at this point in the history
Edit _onBlur function setting showResults to False to hide Options Menu

Issue fmoo#241
  • Loading branch information
abdallahokasha authored Apr 25, 2018
1 parent 0c3a53c commit 5ec239d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/typeahead/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down

0 comments on commit 5ec239d

Please sign in to comment.