Skip to content

Commit

Permalink
Fix openOnFocus
Browse files Browse the repository at this point in the history
  • Loading branch information
jonashaag authored Feb 3, 2017
1 parent ad0724d commit ffa1f2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ var Select = _react2['default'].createClass({
});
} else {
// otherwise, focus the input and open the menu
this._openAfterFocus = true;
this._openAfterFocus = this.props.openOnFocus;
this.focus();
}
},
Expand Down Expand Up @@ -1224,4 +1224,4 @@ var Select = _react2['default'].createClass({
});

exports['default'] = Select;
module.exports = exports['default'];
module.exports = exports['default'];

0 comments on commit ffa1f2d

Please sign in to comment.