diff options
author | afc163 <afc163@gmail.com> | 2017-02-20 16:17:27 +0800 |
---|---|---|
committer | afc163 <afc163@gmail.com> | 2017-02-20 16:17:27 +0800 |
commit | 73fb171157dd0eb56a92d57cf20ddaf937e9b607 (patch) | |
tree | 2d216d6d9a4471c10ff859dc5be4b8b87185d0fd | |
parent | 672a18501749bef888f91e14bf7f79ddf32bdcbf (diff) | |
parent | 2f8835c7ed1457c9e9f80556ed001cba87c1c6a9 (diff) | |
download | time-picker-73fb171157dd0eb56a92d57cf20ddaf937e9b607.tar.gz time-picker-73fb171157dd0eb56a92d57cf20ddaf937e9b607.tar.zst time-picker-73fb171157dd0eb56a92d57cf20ddaf937e9b607.zip |
Merge branch 'master' of github.com:react-component/time-picker
-rw-r--r-- | package.json | 2 | ||||
-rw-r--r-- | src/TimePicker.jsx | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/package.json b/package.json index 1a4d828..1f8b474 100644 --- a/package.json +++ b/package.json | |||
@@ -49,7 +49,7 @@ | |||
49 | "jquery": "1.x", | 49 | "jquery": "1.x", |
50 | "pre-commit": "1.x", | 50 | "pre-commit": "1.x", |
51 | "rc-tools": "5.x", | 51 | "rc-tools": "5.x", |
52 | "rc-util": "^3.1.2", | 52 | "rc-util": "^4.0.0", |
53 | "react": "15.x", | 53 | "react": "15.x", |
54 | "react-addons-test-utils": "15.x", | 54 | "react-addons-test-utils": "15.x", |
55 | "react-dom": "15.x" | 55 | "react-dom": "15.x" |
diff --git a/src/TimePicker.jsx b/src/TimePicker.jsx index 509bcc7..4d7d4d6 100644 --- a/src/TimePicker.jsx +++ b/src/TimePicker.jsx | |||
@@ -107,7 +107,7 @@ const Picker = React.createClass({ | |||
107 | 107 | ||
108 | onEsc() { | 108 | onEsc() { |
109 | this.setOpen(false); | 109 | this.setOpen(false); |
110 | this.picker.focus(); | 110 | this.focus(); |
111 | }, | 111 | }, |
112 | 112 | ||
113 | onKeyDown(e) { | 113 | onKeyDown(e) { |
@@ -186,6 +186,10 @@ const Picker = React.createClass({ | |||
186 | } | 186 | } |
187 | }, | 187 | }, |
188 | 188 | ||
189 | focus() { | ||
190 | this.picker.focus(); | ||
191 | }, | ||
192 | |||
189 | render() { | 193 | render() { |
190 | const { | 194 | const { |
191 | prefixCls, placeholder, placement, align, | 195 | prefixCls, placeholder, placement, align, |