aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authoryiminghe <yiminghe@gmail.com>2016-10-25 17:41:51 +0800
committeryiminghe <yiminghe@gmail.com>2016-10-25 17:41:51 +0800
commitf429b4a79df25c9eadc3901e2483716835cc7de7 (patch)
tree16424ebc8db97db1fed6d8b37d120f3dc462af31
parent5d0443410afb55ab320db946e626f621b64f43b1 (diff)
downloadtime-picker-f429b4a79df25c9eadc3901e2483716835cc7de7.tar.gz
time-picker-f429b4a79df25c9eadc3901e2483716835cc7de7.tar.zst
time-picker-f429b4a79df25c9eadc3901e2483716835cc7de7.zip
add addon prop2.1.0
-rw-r--r--HISTORY.md5
-rw-r--r--package.json2
-rw-r--r--src/Header.jsx18
3 files changed, 16 insertions, 9 deletions
diff --git a/HISTORY.md b/HISTORY.md
index 8cfc326..214f3bb 100644
--- a/HISTORY.md
+++ b/HISTORY.md
@@ -2,6 +2,11 @@
2 2
3--- 3---
4 4
52.1.0 / 2016-10-25
6---------------------------
7
8support addon prop
9
52.0.0 / 2016-08-04 102.0.0 / 2016-08-04
6--------------------------- 11---------------------------
7 12
diff --git a/package.json b/package.json
index 9d98e8a..74066e7 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
1{ 1{
2 "name": "rc-time-picker", 2 "name": "rc-time-picker",
3 "version": "2.0.2", 3 "version": "2.1.0",
4 "description": "React TimePicker", 4 "description": "React TimePicker",
5 "keywords": [ 5 "keywords": [
6 "react", 6 "react",
diff --git a/src/Header.jsx b/src/Header.jsx
index 4196ea9..2ef9827 100644
--- a/src/Header.jsx
+++ b/src/Header.jsx
@@ -151,14 +151,16 @@ const Header = React.createClass({
151 const { prefixCls, placeholder } = this.props; 151 const { prefixCls, placeholder } = this.props;
152 const { invalid, str } = this.state; 152 const { invalid, str } = this.state;
153 const invalidClass = invalid ? `${prefixCls}-input-invalid` : ''; 153 const invalidClass = invalid ? `${prefixCls}-input-invalid` : '';
154 return (<input 154 return (
155 className={`${prefixCls}-input ${invalidClass}`} 155 <input
156 ref="input" 156 className={`${prefixCls}-input ${invalidClass}`}
157 onKeyDown={this.onKeyDown} 157 ref="input"
158 value={str} 158 onKeyDown={this.onKeyDown}
159 placeholder={placeholder} 159 value={str}
160 onChange={this.onInputChange} 160 placeholder={placeholder}
161 />); 161 onChange={this.onInputChange}
162 />
163 );
162 }, 164 },
163 165
164 render() { 166 render() {