diff options
author | afc163 <afc163@gmail.com> | 2016-06-20 13:25:26 +0800 |
---|---|---|
committer | afc163 <afc163@gmail.com> | 2016-06-20 13:25:37 +0800 |
commit | 840e3d48a0a6f0d626d2cc2dfc63fd8a5e17d056 (patch) | |
tree | 1db71dad1477f8593f8f18e0e9aac08d6bd4844e /src/module/Header.jsx | |
parent | 1882f74dd69a626f6f0592d94801c6968c038751 (diff) | |
download | time-picker-840e3d48a0a6f0d626d2cc2dfc63fd8a5e17d056.tar.gz time-picker-840e3d48a0a6f0d626d2cc2dfc63fd8a5e17d056.tar.zst time-picker-840e3d48a0a6f0d626d2cc2dfc63fd8a5e17d056.zip |
select all when picker is opened1.1.5
Diffstat (limited to 'src/module/Header.jsx')
-rw-r--r-- | src/module/Header.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/module/Header.jsx b/src/module/Header.jsx index 41099cc..a926e98 100644 --- a/src/module/Header.jsx +++ b/src/module/Header.jsx | |||
@@ -170,7 +170,7 @@ const Header = React.createClass({ | |||
170 | }, | 170 | }, |
171 | 171 | ||
172 | selectRange() { | 172 | selectRange() { |
173 | this.refs.input.focus(); | 173 | this.refs.input.select(); |
174 | if (this.props.currentSelectPanel && this.refs.input.value) { | 174 | if (this.props.currentSelectPanel && this.refs.input.value) { |
175 | let selectionRangeStart = 0; | 175 | let selectionRangeStart = 0; |
176 | let selectionRangeEnd = 0; | 176 | let selectionRangeEnd = 0; |