From 9b7808040c6cfdf6df60fffe10c86bb2a681cd9e Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 21 Apr 2017 10:39:26 +0800 Subject: [PATCH] Fix panel.close close ant-design/ant-design#5829 --- package.json | 2 +- src/Panel.jsx | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 7edbf6a..fa956bf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rc-time-picker", - "version": "2.3.4", + "version": "2.3.5", "description": "React TimePicker", "keywords": [ "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 { this.setState({ currentSelectPanel }); } + // https://github.com/ant-design/ant-design/issues/5829 + close() { + this.props.onEsc(); + } + render() { const { prefixCls, className, placeholder, disabledHours, disabledMinutes, -- 2.41.0