diff options
author | afc163 <afc163@gmail.com> | 2017-02-20 16:17:27 +0800 |
---|---|---|
committer | afc163 <afc163@gmail.com> | 2017-02-20 16:17:27 +0800 |
commit | 73fb171157dd0eb56a92d57cf20ddaf937e9b607 (patch) | |
tree | 2d216d6d9a4471c10ff859dc5be4b8b87185d0fd /src/TimePicker.jsx | |
parent | 672a18501749bef888f91e14bf7f79ddf32bdcbf (diff) | |
parent | 2f8835c7ed1457c9e9f80556ed001cba87c1c6a9 (diff) | |
download | time-picker-73fb171157dd0eb56a92d57cf20ddaf937e9b607.tar.gz time-picker-73fb171157dd0eb56a92d57cf20ddaf937e9b607.tar.zst time-picker-73fb171157dd0eb56a92d57cf20ddaf937e9b607.zip |
Merge branch 'master' of github.com:react-component/time-picker
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, |