From ad0724d571ba412c677dce023f401ba929c011c6 Mon Sep 17 00:00:00 2001 From: Jonas Haag Date: Fri, 3 Feb 2017 11:33:30 +0100 Subject: [PATCH 1/2] Fix openOnFocus --- src/Select.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Select.js b/src/Select.js index 4dec02ba69..fc09e715f0 100644 --- a/src/Select.js +++ b/src/Select.js @@ -360,7 +360,7 @@ const Select = React.createClass({ }); } else { // otherwise, focus the input and open the menu - this._openAfterFocus = true; + this._openAfterFocus = this.props.openOnFocus; this.focus(); } }, From ffa1f2d327460171e79def227696e6406b400eeb Mon Sep 17 00:00:00 2001 From: Jonas Haag Date: Fri, 3 Feb 2017 11:47:49 +0100 Subject: [PATCH 2/2] 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'];