]> git.immae.eu Git - github/fretlink/time-picker.git/commitdiff
add addon prop 2.1.0
authoryiminghe <yiminghe@gmail.com>
Tue, 25 Oct 2016 09:41:51 +0000 (17:41 +0800)
committeryiminghe <yiminghe@gmail.com>
Tue, 25 Oct 2016 09:41:51 +0000 (17:41 +0800)
HISTORY.md
package.json
src/Header.jsx

index 8cfc3263712be75c5de2a7c90b875a86d1f925e5..214f3bbd58d80d93bc7a0f9a1291403a32dbb225 100644 (file)
@@ -2,6 +2,11 @@
 
 ---
 
+2.1.0 / 2016-10-25
+---------------------------
+
+support addon prop
+
 2.0.0 / 2016-08-04
 ---------------------------
 
index 9d98e8a22f751d586a82dba504548c73f441ac35..74066e797ff5cb88fe089eff15b8bc96f52c6535 100644 (file)
@@ -1,6 +1,6 @@
 {
   "name": "rc-time-picker",
-  "version": "2.0.2",
+  "version": "2.1.0",
   "description": "React TimePicker",
   "keywords": [
     "react",
index 4196ea949a19b805b7e835b5a9fae2753a1720c2..2ef982776cbe71343e2478e79080ebe3b83debfc 100644 (file)
@@ -151,14 +151,16 @@ const Header = React.createClass({
     const { prefixCls, placeholder } = this.props;
     const { invalid, str } = this.state;
     const invalidClass = invalid ? `${prefixCls}-input-invalid` : '';
-    return (<input
-      className={`${prefixCls}-input  ${invalidClass}`}
-      ref="input"
-      onKeyDown={this.onKeyDown}
-      value={str}
-      placeholder={placeholder}
-      onChange={this.onInputChange}
-    />);
+    return (
+      <input
+        className={`${prefixCls}-input  ${invalidClass}`}
+        ref="input"
+        onKeyDown={this.onKeyDown}
+        value={str}
+        placeholder={placeholder}
+        onChange={this.onInputChange}
+      />
+    );
   },
 
   render() {