diff --git a/js/views/conversation_view.js b/js/views/conversation_view.js index 1d86224c0263..4fdec85818a7 100644 --- a/js/views/conversation_view.js +++ b/js/views/conversation_view.js @@ -1456,7 +1456,7 @@ const colons = `:${emojiData[e.index].short_name}:`; const textarea = this.$messageField[0]; - if (textarea.selectionStart || textarea.selectionStart === '0') { + if (textarea.selectionStart || textarea.selectionStart === 0) { const startPos = textarea.selectionStart; const endPos = textarea.selectionEnd;