Element theme textarea could not break line

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
4 years ago
Hi NopTemplate team,

I am using Element template by now and it worked very well until I figured out that in the text area we could not break the new line by clicking the enter button. I tried to find out if there was any java-script code manipulating this issue but still getting stuck in middle of nowhere. In the nop standard people can break the new line with the button.

Thanks for any help!
4 years ago
MinhTranBrandon wrote:
Hi NopTemplate team,

I am using Element template by now and it worked very well until I figured out that in the text area we could not break the new line by clicking the enter button. I tried to find out if there was any java-script code manipulating this issue but still getting stuck in middle of nowhere. In the nop standard people can break the new line with the button.

Thanks for any help!


Hello MinhTranBrandon,

this is not expected behavior, can you please give us some more details - on which page exactly are you having this issue? Is it on some of the standard nop-pages or perhaps you are using some plugin?

Looking forward to your answer!

Best Regards,
Valentin.
4 years ago
Hi,
Thanks for a quick reply :)
I checked it on http://www.themes.earth1.element.nop-templates.com/contactus in the enquiry textarea. It looks like it is the standard behavior of the theme when I checked other textareas like "Signature" in my account textarea, etc..

/Minh
4 years ago
MinhTranBrandon wrote:
Hi,
Thanks for a quick reply :)
I checked it on http://www.themes.earth1.element.nop-templates.com/contactus in the enquiry textarea. It looks like it is the standard behavior of the theme when I checked other textareas like "Signature" in my account textarea, etc..

/Minh


Hello again, MinhTranBrandon,

I suppose you are using Mozilla browser since we just discovered that it has a bug in it concerning the white-space: normal property. It totally ignores it and that is why you cannot enter a new line.

You can fix this issue for the time being, by going in your installation folder to:

~ Presentation\Nop.Web\Themes\Element\Content\css\

open the style.css and styles.rtl.css files in your text editor and delete the bolded code, located on line 131:


textarea {
    min-height: 150px;
    white-space: normal; <-- delete this line only
}


We will research the issue and choose the best way to handle it, and if there is a better solution we will let you know.

Hope this was helpful.

Best Regards,
Valentin.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.