diff options
author | yiminghe <yiminghe@gmail.com> | 2016-10-25 17:41:51 +0800 |
---|---|---|
committer | yiminghe <yiminghe@gmail.com> | 2016-10-25 17:41:51 +0800 |
commit | f429b4a79df25c9eadc3901e2483716835cc7de7 (patch) | |
tree | 16424ebc8db97db1fed6d8b37d120f3dc462af31 /src/Header.jsx | |
parent | 5d0443410afb55ab320db946e626f621b64f43b1 (diff) | |
download | time-picker-f429b4a79df25c9eadc3901e2483716835cc7de7.tar.gz time-picker-f429b4a79df25c9eadc3901e2483716835cc7de7.tar.zst time-picker-f429b4a79df25c9eadc3901e2483716835cc7de7.zip |
add addon prop2.1.0
Diffstat (limited to 'src/Header.jsx')
-rw-r--r-- | src/Header.jsx | 18 |
1 files changed, 10 insertions, 8 deletions
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() { |