diff --git a/public/scripts/slash-commands.js b/public/scripts/slash-commands.js index 865a13f6b..61c15cb3e 100644 --- a/public/scripts/slash-commands.js +++ b/public/scripts/slash-commands.js @@ -2091,6 +2091,9 @@ export function setNewSlashCommandAutoComplete(textarea, isFloating = false) { // add notice if no match found if (result.length == 0) { + if (!isInput) { + return hide(); + } result.push({ name: '', label: `No matching commands for "/${slashCommand}"`,