Skip to content

Commit e8c117e

Browse files
committed
Cleaning up. The label was being passed to FormControl, while it should only be in the ControlLabel
1 parent d0d57c7 commit e8c117e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/components/FormControl.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,8 @@ class FormControl extends Component {
2424
};
2525

2626
getInput = () => {
27-
let { value, name, placeholder, displayName, help, componentClass, children, rows } = this.props;
28-
let label = displayName || name;
29-
30-
let formControlProps = { label, value, placeholder, help, componentClass, rows };
27+
let { value, placeholder, help, componentClass, children, rows } = this.props;
28+
let formControlProps = { value, placeholder, help, componentClass, rows };
3129

3230
return (
3331
<BootstrapFormControl type="text" ref="input" onChange={this.handleChange} onBlur={this.handleBlur} {...formControlProps} hasFeedback>

0 commit comments

Comments
 (0)