diff options
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() { |