fix blinking popup

This commit is contained in:
Henry Jameson 2022-10-09 23:09:31 +03:00
parent 2469415809
commit 518fcf856a
1 changed files with 3 additions and 1 deletions

View File

@ -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)