aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/module
diff options
context:
space:
mode:
authorafc163 <afc163@gmail.com>2016-06-20 13:25:26 +0800
committerafc163 <afc163@gmail.com>2016-06-20 13:25:37 +0800
commit840e3d48a0a6f0d626d2cc2dfc63fd8a5e17d056 (patch)
tree1db71dad1477f8593f8f18e0e9aac08d6bd4844e /src/module
parent1882f74dd69a626f6f0592d94801c6968c038751 (diff)
downloadtime-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')
-rw-r--r--src/module/Header.jsx2
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;