Skip to content

Commit

Permalink
fix focus. Fixes #80
Browse files Browse the repository at this point in the history
  • Loading branch information
yiminghe committed Apr 27, 2016
1 parent 7afbdc0 commit b65e4f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rc-select",
"version": "6.2.2",
"version": "6.2.3",
"description": "React Select",
"keywords": [
"react",
Expand Down
4 changes: 3 additions & 1 deletion src/Select.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,9 @@ const Select = React.createClass({
},

onPlaceholderClick() {
this.getInputDOMNode().focus();
if (this.getInputDOMNode()) {
this.getInputDOMNode().focus();
}
},

onOuterFocus() {
Expand Down

0 comments on commit b65e4f3

Please sign in to comment.