From 41bec13afc225d083134405fc5c1b3b44bb33fd9 Mon Sep 17 00:00:00 2001
From: afc163 <afc163@gmail.com>
Date: Sat, 28 Nov 2015 15:34:39 +0800
Subject: Change current select item to second place

---
 src/module/Select.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/module/Select.jsx')

diff --git a/src/module/Select.jsx b/src/module/Select.jsx
index be4c025..570ff37 100644
--- a/src/module/Select.jsx
+++ b/src/module/Select.jsx
@@ -58,7 +58,7 @@ const Select = React.createClass({
     // move to selected item
     const select = ReactDom.findDOMNode(this);
     const list = ReactDom.findDOMNode(this.refs.list);
-    let index = this.props.selectedIndex - 2;
+    let index = this.props.selectedIndex - 1;
     if (index < 0) {
       index = 0;
     }
-- 
cgit v1.2.3

