diff --git a/resources/views/components/forms/env-var-input.blade.php b/resources/views/components/forms/env-var-input.blade.php
index 5639cdbca..0859db78d 100644
--- a/resources/views/components/forms/env-var-input.blade.php
+++ b/resources/views/components/forms/env-var-input.blade.php
@@ -47,6 +47,11 @@
return;
}
+ if (lastBraceIndex > 0 && textBeforeCursor[lastBraceIndex - 1] === '{') {
+ this.showDropdown = false;
+ return;
+ }
+
const textAfterBrace = textBeforeCursor.substring(lastBraceIndex);
const closeBraces = '}' + '}';
if (textAfterBrace.includes(closeBraces)) {
@@ -156,6 +161,7 @@
handleKeydown(event) {
if (!this.showDropdown) return;
+ if (!this.suggestions || this.suggestions.length === 0) return;
if (event.key === 'ArrowDown') {
event.preventDefault();
@@ -225,12 +231,6 @@ class="text-coollabs dark:text-warning hover:underline text-xs mt-1 inline-block
-
-