aboutsummaryrefslogtreecommitdiff
path: root/src/components/emoji_input
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2022-10-09 23:09:31 +0300
committerHenry Jameson <me@hjkos.com>2022-10-09 23:09:31 +0300
commit518fcf856a63c5b50745a6549e10b228d27c10d3 (patch)
treec5ed3b015da0b720a05d678e1e4a607d3cded587 /src/components/emoji_input
parent2469415809c7bff4dac97c469fd4aa74f9191a75 (diff)
fix blinking popup
Diffstat (limited to 'src/components/emoji_input')
-rw-r--r--src/components/emoji_input/emoji_input.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/emoji_input/emoji_input.js b/src/components/emoji_input/emoji_input.js
index 46f04c60..5131e699 100644
--- a/src/components/emoji_input/emoji_input.js
+++ b/src/components/emoji_input/emoji_input.js
@@ -258,7 +258,9 @@ const EmojiInput = {
textAtCaret: async function (newWord) {
const firstchar = newWord.charAt(0)
if (newWord === firstchar) {
- this.suggestions = []
+ if (firstchar === ' ') {
+ this.suggestions = []
+ }
return
}
const matchedSuggestions = await this.suggest(newWord, this.maybeLocalizedEmojiNamesAndKeywords)