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 da47ac4..aa3e0da 100644
--- a/src/TimePicker.jsx
+++ b/src/TimePicker.jsx
@@ -106,7 +106,7 @@ const Picker = React.createClass({
106 106
107 onEsc() { 107 onEsc() {
108 this.setOpen(false); 108 this.setOpen(false);
109 this.picker.focus(); 109 this.focus();
110 }, 110 },
111 111
112 onKeyDown(e) { 112 onKeyDown(e) {
@@ -185,6 +185,10 @@ const Picker = React.createClass({
185 } 185 }
186 }, 186 },
187 187
188 focus() {
189 this.picker.focus();
190 },
191
188 render() { 192 render() {
189 const { 193 const {
190 prefixCls, placeholder, placement, align, 194 prefixCls, placeholder, placement, align,