]> git.immae.eu Git - github/fretlink/time-picker.git/commitdiff
Fix panel.close 2.3.5
authorafc163 <afc163@gmail.com>
Fri, 21 Apr 2017 02:39:26 +0000 (10:39 +0800)
committerafc163 <afc163@gmail.com>
Fri, 21 Apr 2017 02:40:06 +0000 (10:40 +0800)
close ant-design/ant-design#5829

package.json
src/Panel.jsx

index 7edbf6a55d4018317d9cc074764655c45d1ad2e4..fa956bfda5dc6a022499d23fc9fa1ba000eb006b 100644 (file)
@@ -1,6 +1,6 @@
 {
   "name": "rc-time-picker",
-  "version": "2.3.4",
+  "version": "2.3.5",
   "description": "React TimePicker",
   "keywords": [
     "react",
index 65832eabaabade0a522b5926d5f1c158a1ce6468..1953ad497a0a69309251846e3c25980bd8b57741 100644 (file)
@@ -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,