jackmoore / autosize

Autosize is a small, stand-alone script to automatically adjust textarea height to fit text.
http://www.jacklmoore.com/autosize/
MIT License
5.1k stars 702 forks source link

When the end of the line is reached, pressing the spacebar does not switch to a new line. #397

Closed m2sahin closed 1 year ago

m2sahin commented 2 years ago

When the end of the line is reached, pressing the spacebar does not switch to a new line. Press the space key 100 times at the end of the line, it will save it, but when you press another key it will switch to the new line and you will see the space then.

FlashTang commented 1 year ago

@m2sahin Try apply css to textarea white-space: break-spaces; or textArea.style.whiteSpace = "break-spaces";