aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorafc163 <afc163@gmail.com>2017-04-21 10:39:26 +0800
committerafc163 <afc163@gmail.com>2017-04-21 10:40:06 +0800
commit9b7808040c6cfdf6df60fffe10c86bb2a681cd9e (patch)
tree3bdf8aabdec7f65a49104618b03742c3f466d987 /src
parentff8894f38a556293c5dda5c027154237959839d3 (diff)
downloadtime-picker-9b7808040c6cfdf6df60fffe10c86bb2a681cd9e.tar.gz
time-picker-9b7808040c6cfdf6df60fffe10c86bb2a681cd9e.tar.zst
time-picker-9b7808040c6cfdf6df60fffe10c86bb2a681cd9e.zip
Fix panel.close2.3.5
close ant-design/ant-design#5829
Diffstat (limited to 'src')
-rw-r--r--src/Panel.jsx5
1 files changed, 5 insertions, 0 deletions
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,