Skip to content

Commit

Permalink
Fix bug where clicking on menu item doesn't add selection
Browse files Browse the repository at this point in the history
  • Loading branch information
ericgio committed Jul 24, 2016
1 parent 88549de commit 7abd6e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-bootstrap-typeahead",
"version": "0.6.3",
"version": "0.6.4",
"description": "React-based typeahead using the Bootstrap theme",
"main": "lib/index.js",
"directories": {
Expand Down
3 changes: 2 additions & 1 deletion src/Typeahead.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,8 @@ const Typeahead = React.createClass({
},

_handleBlur(e) {
this._hideDropdown();
// Note: Don't hide the menu here, since that interferes with other actions
// like making a selection by clicking on a menu item.
this.props.onBlur && this.props.onBlur(e);
},

Expand Down

0 comments on commit 7abd6e9

Please sign in to comment.