aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--package.json2
-rw-r--r--src/TimePicker.jsx6
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,