diff options
author | afc163 <afc163@gmail.com> | 2015-12-08 22:11:02 +0800 |
---|---|---|
committer | afc163 <afc163@gmail.com> | 2015-12-08 22:11:02 +0800 |
commit | 5fcf22e028bf878c5be854c19074480cadf8b4bc (patch) | |
tree | db29d8dc35a804e7d87f41cc7c7454633f60e75a /src/module/Select.jsx | |
parent | 3c176a6f616225c65d576881c9bbd2f5e8002e59 (diff) | |
download | time-picker-5fcf22e028bf878c5be854c19074480cadf8b4bc.tar.gz time-picker-5fcf22e028bf878c5be854c19074480cadf8b4bc.tar.zst time-picker-5fcf22e028bf878c5be854c19074480cadf8b4bc.zip |
default select value at first position1.0.0-alpha5
Diffstat (limited to 'src/module/Select.jsx')
-rw-r--r-- | src/module/Select.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/module/Select.jsx b/src/module/Select.jsx index 0b91ac5..8cf4e2d 100644 --- a/src/module/Select.jsx +++ b/src/module/Select.jsx | |||
@@ -62,7 +62,7 @@ const Select = React.createClass({ | |||
62 | // move to selected item | 62 | // move to selected item |
63 | const select = ReactDom.findDOMNode(this); | 63 | const select = ReactDom.findDOMNode(this); |
64 | const list = ReactDom.findDOMNode(this.refs.list); | 64 | const list = ReactDom.findDOMNode(this.refs.list); |
65 | let index = this.props.selectedIndex - 1; | 65 | let index = this.props.selectedIndex; |
66 | if (index < 0) { | 66 | if (index < 0) { |
67 | index = 0; | 67 | index = 0; |
68 | } | 68 | } |