react-form-builder icon indicating copy to clipboard operation
react-form-builder copied to clipboard

Using onChange does not allow trailing spaces

Open ajay1800spirits opened this issue 1 year ago • 0 comments

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

ajay1800spirits avatar Feb 27 '24 06:02 ajay1800spirits