From 2b9b72e98aa7c5bd2717cf4e6db2f3ba29f5bbe4 Mon Sep 17 00:00:00 2001 From: LenAnderson Date: Thu, 25 Apr 2024 20:40:23 -0400 Subject: [PATCH] fix blank check --- public/scripts/slash-commands/SlashCommandAutoComplete.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/scripts/slash-commands/SlashCommandAutoComplete.js b/public/scripts/slash-commands/SlashCommandAutoComplete.js index 84ebecd77..83026de8b 100644 --- a/public/scripts/slash-commands/SlashCommandAutoComplete.js +++ b/public/scripts/slash-commands/SlashCommandAutoComplete.js @@ -620,7 +620,7 @@ export class SlashCommandAutoComplete { } case 'Enter': { // pick the selected item to autocomplete - if (evt.ctrlKey || evt.altKey || evt.shiftKey || this.selectedItem.type == OPTION_TYPE.BLANK) break; + if (evt.ctrlKey || evt.altKey || evt.shiftKey || this.selectedItem.value == '') break; if (this.selectedItem.name == this.name) break; evt.preventDefault(); evt.stopImmediatePropagation(); @@ -629,7 +629,7 @@ export class SlashCommandAutoComplete { } case 'Tab': { // pick the selected item to autocomplete - if (evt.ctrlKey || evt.altKey || evt.shiftKey || this.selectedItem.type == OPTION_TYPE.BLANK) break; + if (evt.ctrlKey || evt.altKey || evt.shiftKey || this.selectedItem.value == '') break; evt.preventDefault(); evt.stopImmediatePropagation(); this.select();