Skip to content

Commit

Permalink
Code review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jkimbo committed Apr 22, 2015
1 parent 9b82e8f commit 666f062
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions dist/single.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,12 @@ var SingleChoice = React.createClass({displayName: 'SingleChoice',
},

_handleBlur: function(event) {
event.preventDefault();
if (this._optionsMouseDown === true) {
this._optionsMouseDown = false;
this.refs.input.getDOMNode().focus();
event.preventDefault();
event.stopPropagation();
} else {
event.preventDefault();
this.setState({
focus: false
});
Expand Down
3 changes: 1 addition & 2 deletions src/single.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,12 @@ var SingleChoice = React.createClass({
},

_handleBlur: function(event) {
event.preventDefault();
if (this._optionsMouseDown === true) {
this._optionsMouseDown = false;
this.refs.input.getDOMNode().focus();
event.preventDefault();
event.stopPropagation();
} else {
event.preventDefault();
this.setState({
focus: false
});
Expand Down

0 comments on commit 666f062

Please sign in to comment.