From 9b7808040c6cfdf6df60fffe10c86bb2a681cd9e Mon Sep 17 00:00:00 2001
From: afc163 <afc163@gmail.com>
Date: Fri, 21 Apr 2017 10:39:26 +0800
Subject: Fix panel.close

close ant-design/ant-design#5829
---
 src/Panel.jsx | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'src/Panel.jsx')

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 {
     this.setState({ currentSelectPanel });
   }
 
+  // https://github.com/ant-design/ant-design/issues/5829
+  close() {
+    this.props.onEsc();
+  }
+
   render() {
     const {
       prefixCls, className, placeholder, disabledHours, disabledMinutes,
-- 
cgit v1.2.3

