aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Header.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Header.jsx')
-rw-r--r--src/Header.jsx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Header.jsx b/src/Header.jsx
index 1ba5909..21d557e 100644
--- a/src/Header.jsx
+++ b/src/Header.jsx
@@ -10,7 +10,7 @@ class Header extends Component {
10 placeholder: PropTypes.string, 10 placeholder: PropTypes.string,
11 clearText: PropTypes.string, 11 clearText: PropTypes.string,
12 value: PropTypes.object, 12 value: PropTypes.object,
13 readOnlyInput: PropTypes.bool, 13 inputReadOnly: PropTypes.bool,
14 hourOptions: PropTypes.array, 14 hourOptions: PropTypes.array,
15 minuteOptions: PropTypes.array, 15 minuteOptions: PropTypes.array,
16 secondOptions: PropTypes.array, 16 secondOptions: PropTypes.array,
@@ -28,7 +28,7 @@ class Header extends Component {
28 }; 28 };
29 29
30 static defaultProps = { 30 static defaultProps = {
31 readOnlyInput: false, 31 inputReadOnly: false,
32 } 32 }
33 33
34 constructor(props) { 34 constructor(props) {
@@ -171,7 +171,7 @@ class Header extends Component {
171 } 171 }
172 172
173 getInput() { 173 getInput() {
174 const { prefixCls, placeholder, readOnlyInput } = this.props; 174 const { prefixCls, placeholder, inputReadOnly } = this.props;
175 const { invalid, str } = this.state; 175 const { invalid, str } = this.state;
176 const invalidClass = invalid ? `${prefixCls}-input-invalid` : ''; 176 const invalidClass = invalid ? `${prefixCls}-input-invalid` : '';
177 return ( 177 return (
@@ -182,7 +182,7 @@ class Header extends Component {
182 value={str} 182 value={str}
183 placeholder={placeholder} 183 placeholder={placeholder}
184 onChange={this.onInputChange} 184 onChange={this.onInputChange}
185 readOnly={!!readOnlyInput} 185 readOnly={!!inputReadOnly}
186 /> 186 />
187 ); 187 );
188 } 188 }