Skip to content

Commit

Permalink
Fix issue that onFocus will trigger twice
Browse files Browse the repository at this point in the history
  • Loading branch information
RaoHai committed Jan 17, 2017
1 parent c35796b commit f62ea11
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 f62ea11

Please sign in to comment.