diff --git a/files/assets/js/emoji_modal.js b/files/assets/js/emoji_modal.js index 2ec9c910a..87d376f49 100644 --- a/files/assets/js/emoji_modal.js +++ b/files/assets/js/emoji_modal.js @@ -522,8 +522,7 @@ function loadEmojis(inputTargetIDName) emojiEngineState = "loading" return fetchEmojis(); case "loading": - // this is a subpar solution because it means that globalEmojis won't be loaded for later keystrokes - // however, it doesn't matter because onInput only checks what the user is typing after everything is loaded + // this works because once the fetch completes, the first keystroke callback will fire and use the current value return Promise.reject(); case "ready": return Promise.resolve();