diff options
Diffstat (limited to 'webapp/components/create_post.jsx')
-rw-r--r-- | webapp/components/create_post.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/webapp/components/create_post.jsx b/webapp/components/create_post.jsx index 75c75f09d..cdcaacbf3 100644 --- a/webapp/components/create_post.jsx +++ b/webapp/components/create_post.jsx @@ -374,12 +374,12 @@ class CreatePost extends React.Component { } if ((e.ctrlKey || e.metaKey) && !e.altKey && !e.shiftKey && e.keyCode === KeyCodes.UP) { - e.preventDefault(); const channelId = ChannelStore.getCurrentId(); const lastPost = PostStore.getCurrentUsersLatestPost(channelId); - if (!lastPost) { + if (!lastPost || this.state.messageText !== '') { return; } + e.preventDefault(); let message = lastPost.message; if (this.state.lastMessage !== '') { message = this.state.lastMessage; |