Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using onChange does not allow trailing spaces #297

Open
ajay1800spirits opened this issue Feb 27, 2024 · 0 comments
Open

Using onChange does not allow trailing spaces #297

ajay1800spirits opened this issue Feb 27, 2024 · 0 comments

Comments

@ajay1800spirits
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant