aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/TimePicker.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/TimePicker.jsx')
-rw-r--r--src/TimePicker.jsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/TimePicker.jsx b/src/TimePicker.jsx
index ec3eda0..01bab2c 100644
--- a/src/TimePicker.jsx
+++ b/src/TimePicker.jsx
@@ -104,7 +104,7 @@ const Picker = React.createClass({
104 104
105 onEsc() { 105 onEsc() {
106 this.setOpen(false); 106 this.setOpen(false);
107 this.refs.picker.focus(); 107 this.focus();
108 }, 108 },
109 109
110 onKeyDown(e) { 110 onKeyDown(e) {
@@ -183,6 +183,10 @@ const Picker = React.createClass({
183 } 183 }
184 }, 184 },
185 185
186 focus() {
187 this.refs.picker.focus();
188 },
189
186 render() { 190 render() {
187 const { 191 const {
188 prefixCls, placeholder, placement, align, 192 prefixCls, placeholder, placement, align,