Permalink
Browse files

Wrapped or clause (ternary) in parens

  • Loading branch information...
thezanke committed Dec 22, 2016
1 parent 7ef1013 commit f11520a2fdf2a7258e2bda3308eb1b129d71bfde
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Select.js
View
@@ -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;
}

0 comments on commit f11520a

Please sign in to comment.