diff --git a/src/components/ExpressionEditor.vue b/src/components/ExpressionEditor.vue index 841e739..02660cc 100644 --- a/src/components/ExpressionEditor.vue +++ b/src/components/ExpressionEditor.vue @@ -4,6 +4,8 @@ :value="value" @input="updateValue($event.target.value)" @keydown="handleKeyDown" + @blur="hideSuggestions" + @focus="handleInput" ref="codeEditor"/>
{ + this.showSuggestions = false + }, 100) + }, handleInput () { const cursorPosition = this.$refs.codeEditor.selectionStart const textBeforeCursor = this.value.slice(0, cursorPosition)