Skip to content

Commit

Permalink
Merge pull request #156 from RaoHai/focusTwice
Browse files Browse the repository at this point in the history
 Fix issue that onFocus will trigger twice
  • Loading branch information
yiminghe committed Jan 20, 2017
2 parents c35796b + f62ea11 commit 4a2f353
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Select.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,10 @@ const Select = React.createClass({
}
},

onOuterFocus() {
onOuterFocus(e) {
if (e.target === this.getInputDOMNode()) {
return;
}
this.clearBlurTime();
this._focused = true;
this.updateFocusClassName();
Expand Down

0 comments on commit 4a2f353

Please sign in to comment.