Skip to content

Commit

Permalink
Fixed focused option
Browse files Browse the repository at this point in the history
  • Loading branch information
yuri-sakharov committed Dec 22, 2017
1 parent d2a3afd commit ba0f10c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,11 +303,13 @@ class Select extends React.Component {
this.setState({
isOpen: toOpen,
isPseudoFocused: false,
focusedOption: null,
});
} else {
// otherwise, focus the input and open the menu
this._openAfterFocus = this.props.openOnClick;
this.focus();
this.setState({ focusedOption: null });
}
}

Expand Down

0 comments on commit ba0f10c

Please sign in to comment.