I have a form in which I have a few textboxes and dropdowns. I am re-rendering this form component on change of dropdown value with new values. It is re-rendering fine with update values but I am not able to change the values manually from textboxes or dropdown. How can I update the value manually after prepopulating values?
render() {
return <div>
<div className="row">
<div className="form-group col-md-4">
<label>Name:<i><b>*</b></i></label>
<select className="form-control formControl" onChange={this.props.simplifiedFunction} id="ddlName" defaultValue={this.props.data[0].EmployeeID} >
{this.props.allNames}
</select>
</div> <div className="form-group col-md-4">
<label>Title:</label>
<input className="form-control formControl" defaultValue={this.props.data[0].Title}
value={this.props.data[0].Title} />
</div>
<div className="form-group col-md-4">
<label>Department:</label>
<input className="form-control formControl" defaultValue={this.props.data[0].Department}
value={this.props.data[0].Department} />
</div>
</div>