-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Value attribute for TextArea control is a input[type=text] and not textarea/div[contenteditable] leading to removal of new lines #699
Comments
you need at first before sending to encodeURIcomponent(message), then when you recieve the message decodeURIComponent(message); then message.replace(/%0A/g, " |
Is this still an issue? |
The value field is a a input[type=text] element which can only take single line text. So when we sync the value of the preview textarea to the value field the \n newlines are removed. formBuilder/src/js/form-builder.js Line 1717 in 58baf4e
|
🎉 This issue has been resolved in version 3.17.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
We can write new lines (hit the "enter" button) on the textarea, but it doesn't save them.
You can try this on the demo page.
1 - https://formbuilder.online/
2 - Add a textarea
3 - Write something with multiple lines
4 - Save
5 - Weep
Value is saved with all lines together, not even a tiny space between characters.
Any ideas to fix this are highly appreciated. Cheers.
The text was updated successfully, but these errors were encountered: