Skip to content

Commit

Permalink
Merge pull request JedWatson#1527 from jonashaag/patch-1
Browse files Browse the repository at this point in the history
Fix openOnFocus
  • Loading branch information
JedWatson authored Feb 10, 2017
2 parents 535fd8a + ffa1f2d commit 5aef30d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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'];
2 changes: 1 addition & 1 deletion src/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
},
Expand Down

0 comments on commit 5aef30d

Please sign in to comment.