diff options
author | afc163 <afc163@gmail.com> | 2015-11-29 15:14:32 +0800 |
---|---|---|
committer | afc163 <afc163@gmail.com> | 2015-11-29 15:14:32 +0800 |
commit | 85d09ad3310c26d61b6af60b28d680eed1f2bf1c (patch) | |
tree | a346113772f90bfb6288b114309cd78432dd8b06 /src | |
parent | ec9325586535a0067af78586873349f53dcfdd4c (diff) | |
download | time-picker-85d09ad3310c26d61b6af60b28d680eed1f2bf1c.tar.gz time-picker-85d09ad3310c26d61b6af60b28d680eed1f2bf1c.tar.zst time-picker-85d09ad3310c26d61b6af60b28d680eed1f2bf1c.zip |
show scrollbar when hover
Diffstat (limited to 'src')
-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 119e59e..b386d07 100644 --- a/src/module/Select.jsx +++ b/src/module/Select.jsx | |||
@@ -64,7 +64,7 @@ const Select = React.createClass({ | |||
64 | } | 64 | } |
65 | const topOption = list.children[index]; | 65 | const topOption = list.children[index]; |
66 | const to = topOption.offsetTop - select.offsetTop; | 66 | const to = topOption.offsetTop - select.offsetTop; |
67 | scrollTo(list, to, duration); | 67 | scrollTo(select, to, duration); |
68 | }, | 68 | }, |
69 | 69 | ||
70 | render() { | 70 | render() { |