Skip to content

Commit 2d4d784

Browse files
committed
Fixes the extra-line bug when a message is posted
Signed-off-by: Akash Manohar J <akash@akash.im>
1 parent 1ef504f commit 2d4d784

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/assets/javascripts/backbone/views/chatbox.js.coffee

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ class Kandan.Views.Chatbox extends Backbone.View
1111

1212

1313
postMessageOnEnter: (event)->
14-
@postMessage(event) if event.keyCode== 13
14+
if event.keyCode== 13
15+
@postMessage(event)
16+
event.preventDefault()
1517

1618

1719
postMessage: (event)->

0 commit comments

Comments
 (0)