From ffa1f2d327460171e79def227696e6406b400eeb Mon Sep 17 00:00:00 2001 From: Jonas Haag Date: Fri, 3 Feb 2017 11:47:49 +0100 Subject: [PATCH] Fix openOnFocus --- lib/Select.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Select.js b/lib/Select.js index cd69c81c71..f3fb8bb8c8 100644 --- a/lib/Select.js +++ b/lib/Select.js @@ -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(); } }, @@ -1224,4 +1224,4 @@ var Select = _react2['default'].createClass({ }); exports['default'] = Select; -module.exports = exports['default']; \ No newline at end of file +module.exports = exports['default'];