summaryrefslogtreecommitdiffstats
path: root/webapp/components/create_comment.jsx
diff options
context:
space:
mode:
authorDavid Lu <david.lu@hotmail.com>2016-05-27 08:42:00 -0700
committerJoram Wilander <jwawilander@gmail.com>2016-05-27 11:42:00 -0400
commit24590b3e896ef36268c4afc9d30674a490c4e5f8 (patch)
tree9849c85555a3f05cff61f6577ca3cc0b3f722f25 /webapp/components/create_comment.jsx
parent0d8431b4bae662919c30dc6bc140cdc3497183ee (diff)
downloadchat-24590b3e896ef36268c4afc9d30674a490c4e5f8.tar.gz
chat-24590b3e896ef36268c4afc9d30674a490c4e5f8.tar.bz2
chat-24590b3e896ef36268c4afc9d30674a490c4e5f8.zip
Added preventDefault (#3137)
Diffstat (limited to 'webapp/components/create_comment.jsx')
-rw-r--r--webapp/components/create_comment.jsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/webapp/components/create_comment.jsx b/webapp/components/create_comment.jsx
index 814cffef9..616257f37 100644
--- a/webapp/components/create_comment.jsx
+++ b/webapp/components/create_comment.jsx
@@ -225,6 +225,7 @@ class CreateComment extends React.Component {
}
if ((e.ctrlKey || e.metaKey) && !e.altKey && !e.shiftKey && e.keyCode === KeyCodes.UP) {
+ e.preventDefault();
const lastPost = PostStore.getCurrentUsersLatestPost(this.props.channelId, this.props.rootId);
if (!lastPost) {
return;