diff options
Diffstat (limited to 'src/TimePicker.jsx')
-rw-r--r-- | src/TimePicker.jsx | 6 |
1 files changed, 5 insertions, 1 deletions
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, |