Disable New Line in Textarea when Pressed ENTER

后端 未结 4 1067
没有蜡笔的小新
没有蜡笔的小新 2020-12-01 18:06

I am calling a function whenever someone press enter in the textarea. Now I want to disable new line or break when ent

4条回答
  •  执念已碎
    2020-12-01 18:23

    For Angular Users

    While there are existing working solutions, if anyone comes across this question using Angular, you can disable new lines with the following:

    Add