From f11520a2fdf2a7258e2bda3308eb1b129d71bfde Mon Sep 17 00:00:00 2001 From: Alex Howard Date: Wed, 21 Dec 2016 19:11:20 -0500 Subject: [PATCH] Wrapped or clause (ternary) in parens --- src/Select.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Select.js b/src/Select.js index f9d21911a2..fb7d02e9d3 100644 --- a/src/Select.js +++ b/src/Select.js @@ -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; }