react-form-builder
react-form-builder copied to clipboard
Using onChange does not allow trailing spaces
If onChange prop is added to the reactFormGenerator component, no trailing space is allowed which means if a user wants to input 2 or more words he will have to write the entire thing without spaces and then go back to add spaces between words. This is due to the trim() method being called on the answer_data for the onChange event