aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/module/Select.jsx
diff options
context:
space:
mode:
authorafc163 <afc163@gmail.com>2015-11-28 15:34:39 +0800
committerafc163 <afc163@gmail.com>2015-11-28 15:34:39 +0800
commit41bec13afc225d083134405fc5c1b3b44bb33fd9 (patch)
tree80dcd19527ae0a6626bac7d660853ad24eca8ebe /src/module/Select.jsx
parent8133e8cf3b37b2be764616493ade7c7a7678fce1 (diff)
downloadtime-picker-41bec13afc225d083134405fc5c1b3b44bb33fd9.tar.gz
time-picker-41bec13afc225d083134405fc5c1b3b44bb33fd9.tar.zst
time-picker-41bec13afc225d083134405fc5c1b3b44bb33fd9.zip
Change current select item to second place
Diffstat (limited to 'src/module/Select.jsx')
-rw-r--r--src/module/Select.jsx2
1 files changed, 1 insertions, 1 deletions
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({
58 // move to selected item 58 // move to selected item
59 const select = ReactDom.findDOMNode(this); 59 const select = ReactDom.findDOMNode(this);
60 const list = ReactDom.findDOMNode(this.refs.list); 60 const list = ReactDom.findDOMNode(this.refs.list);
61 let index = this.props.selectedIndex - 2; 61 let index = this.props.selectedIndex - 1;
62 if (index < 0) { 62 if (index < 0) {
63 index = 0; 63 index = 0;
64 } 64 }