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

Does not render new line with "\n" in text #22

Open
singhsaubhik opened this issue Dec 8, 2019 · 1 comment
Open

Does not render new line with "\n" in text #22

singhsaubhik opened this issue Dec 8, 2019 · 1 comment

Comments

@singhsaubhik
Copy link

It does not render new line with "\n" in text. let say text is "Hi this is a\n test text". Then this should be rendered like:
$ Hi this is a
$ test text

but it is rendering:
$ Hi this is atest text

@Alec-Alameddine
Copy link

Alec-Alameddine commented Jul 26, 2022

The library is built using <input> for input, which will never render multiline. You either need to change the source code to generate a <textarea> or use some DOM replacement to swap out <input> with a <textarea>. I did the latter and the classes still work.

I would suggest the author add a multiline prop which generates a textarea instead of input

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

2 participants