Skip to content

Commit ffa1f2d

Browse files
authored
Fix openOnFocus
1 parent ad0724d commit ffa1f2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Select.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ var Select = _react2['default'].createClass({
407407
});
408408
} else {
409409
// otherwise, focus the input and open the menu
410-
this._openAfterFocus = true;
410+
this._openAfterFocus = this.props.openOnFocus;
411411
this.focus();
412412
}
413413
},
@@ -1224,4 +1224,4 @@ var Select = _react2['default'].createClass({
12241224
});
12251225

12261226
exports['default'] = Select;
1227-
module.exports = exports['default'];
1227+
module.exports = exports['default'];

0 commit comments

Comments
 (0)