Not able to edit the text, here is the main component
render() {
return (
<div className="container mb-5">
<RenderProfessionalLearningTable {...this.props} />
</div>
);
}
function RenderProfessionalLearningTable(props) {
return (
<form className="container" onSubmit={props.professionalLearningFormsubmit}>
<div className="form-row">
<div className="form-group col-sm-6">
<label>Course Name *</label>
<input type="text" className="form-control" name="courseName" value={props.professionalLearning.courseName || ''} onChange={props.updateprofessionalLearningValue}
aria-describedby="Course Name" placeholder="Enter a course name" />
</div>
<div className="form-group col-sm-6">
<label>Provider *</label>
<input type="text" className="form-control" name="provider" value={props.professionalLearning.provider || ''} onChange={props.updateprofessionalLearningValue}
id="provider" aria-describedby="Provider" placeholder="Enter a Provider" />
</div>
</div >
</form >
);
}
Here is the action creator
export const actionCreators = {
updateprofessionalLearningValue: professionalLearningItem => async (dispatch, getState) => {
let professionalLearning = getState().professionalLearning.professionalLearning;
professionalLearning[professionalLearningItem.target.name] = professionalLearningItem.target.value;
dispatch({ type: ReduxConstants.recieveProfessionalLearningUpdatecValue, professionalLearning });
}
}
Reducer
case ReduxConstants.receiveFilterProfessionalLearningId:
return {
...state,
professionalLearning: action.professionalLearning,
isLoading: false
};
As per the screen shot I am able to see the changed value, but the UI doesn't reflect it and it doesn't allow me to add more than 1 character. If I press backspace also it doesn't allow me to remove the value.
Some of the reference I followed