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 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,