aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/module/Select.jsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/module/Select.jsx b/src/module/Select.jsx
index 2ab9e61..fa4e5c4 100644
--- a/src/module/Select.jsx
+++ b/src/module/Select.jsx
@@ -69,6 +69,9 @@ const Select = React.createClass({
69 // move to selected item 69 // move to selected item
70 const select = ReactDom.findDOMNode(this); 70 const select = ReactDom.findDOMNode(this);
71 const list = ReactDom.findDOMNode(this.refs.list); 71 const list = ReactDom.findDOMNode(this.refs.list);
72 if (!list) {
73 return;
74 }
72 let index = this.props.selectedIndex; 75 let index = this.props.selectedIndex;
73 if (index < 0) { 76 if (index < 0) {
74 index = 0; 77 index = 0;