aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--package.json2
-rw-r--r--src/Panel.jsx5
2 files changed, 6 insertions, 1 deletions
diff --git a/package.json b/package.json
index 7edbf6a..fa956bf 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
1{ 1{
2 "name": "rc-time-picker", 2 "name": "rc-time-picker",
3 "version": "2.3.4", 3 "version": "2.3.5",
4 "description": "React TimePicker", 4 "description": "React TimePicker",
5 "keywords": [ 5 "keywords": [
6 "react", 6 "react",
diff --git a/src/Panel.jsx b/src/Panel.jsx
index 65832ea..1953ad4 100644
--- a/src/Panel.jsx
+++ b/src/Panel.jsx
@@ -80,6 +80,11 @@ class Panel extends Component {
80 this.setState({ currentSelectPanel }); 80 this.setState({ currentSelectPanel });
81 } 81 }
82 82
83 // https://github.com/ant-design/ant-design/issues/5829
84 close() {
85 this.props.onEsc();
86 }
87
83 render() { 88 render() {
84 const { 89 const {
85 prefixCls, className, placeholder, disabledHours, disabledMinutes, 90 prefixCls, className, placeholder, disabledHours, disabledMinutes,