aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Select.jsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Select.jsx b/src/Select.jsx
index e25bb29..238a776 100644
--- a/src/Select.jsx
+++ b/src/Select.jsx
@@ -75,6 +75,9 @@ const Select = React.createClass({
75 // move to selected item 75 // move to selected item
76 const select = ReactDom.findDOMNode(this); 76 const select = ReactDom.findDOMNode(this);
77 const list = ReactDom.findDOMNode(this.refs.list); 77 const list = ReactDom.findDOMNode(this.refs.list);
78 if (!list) {
79 return;
80 }
78 let index = this.props.selectedIndex; 81 let index = this.props.selectedIndex;
79 if (index < 0) { 82 if (index < 0) {
80 index = 0; 83 index = 0;