diff --git a/components/autocomplete.vue b/components/autocomplete.vue index eb46239bd..1cfca1688 100644 --- a/components/autocomplete.vue +++ b/components/autocomplete.vue @@ -3,7 +3,7 @@ = 0 ? this.currentSuggestionIndex : 0 ]; if (activeSuggestion) { - let input = this.value.substring(0, this.selectionStart); - this.value = input + activeSuggestion; + let input = this.text.substring(0, this.selectionStart); + this.text = input + activeSuggestion; } break; @@ -184,7 +190,7 @@ export default { * @returns {default.props.source|{type, required}} */ suggestions() { - let input = this.value.substring(0, this.selectionStart); + let input = this.text.substring(0, this.selectionStart); return ( this.source diff --git a/pages/graphql.vue b/pages/graphql.vue index 90329b805..66b474b4c 100644 --- a/pages/graphql.vue +++ b/pages/graphql.vue @@ -52,14 +52,15 @@