Skip to content

Commit

Permalink
Wrapped or clause (ternary) in parens
Browse files Browse the repository at this point in the history
  • Loading branch information
thezanke committed Dec 22, 2016
1 parent 7ef1013 commit f11520a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,7 @@ const Select = React.createClass({
this.setState({
isOpen: true,
inputValue: '',
focusedOption: this._focusedOption || options.length ? options[dir === 'next' ? 0 : options.length - 1].option : null
focusedOption: this._focusedOption || (options.length ? options[dir === 'next' ? 0 : options.length - 1].option : null)
});
return;
}
Expand Down

0 comments on commit f11520a

Please sign in to comment.