aboutsummaryrefslogtreecommitdiffhomepage
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
parent1882f74dd69a626f6f0592d94801c6968c038751 (diff)
downloadtime-picker-840e3d48a0a6f0d626d2cc2dfc63fd8a5e17d056.tar.gz
time-picker-840e3d48a0a6f0d626d2cc2dfc63fd8a5e17d056.tar.zst
time-picker-840e3d48a0a6f0d626d2cc2dfc63fd8a5e17d056.zip
select all when picker is opened1.1.5
-rw-r--r--package.json2
-rw-r--r--src/module/Header.jsx2
2 files changed, 2 insertions, 2 deletions
diff --git a/package.json b/package.json
index cb2896b..11b2436 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
1{ 1{
2 "name": "rc-time-picker", 2 "name": "rc-time-picker",
3 "version": "1.1.4", 3 "version": "1.1.5",
4 "description": "React TimePicker", 4 "description": "React TimePicker",
5 "keywords": [ 5 "keywords": [
6 "react", 6 "react",
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;