Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
Add check for active suggestion (#1180)
Matthew Jarman45fb612793c3
diff --git a/components/ui/autocomplete.vue b/components/ui/autocomplete.vueindex 8893d5ab3..0f6288233 100644--- a/components/ui/autocomplete.vue+++ b/components/ui/autocomplete.vue@@ -161,10 +161,15 @@ export default {breakcase "Tab":- event.preventDefault()let activeSuggestion = this.suggestions[this.currentSuggestionIndex >= 0 ? this.currentSuggestionIndex : 0]++ if (!activeSuggestion) {+ return+ }++ event.preventDefault()let input = this.text.substring(0, this.selectionStart)this.text = input + activeSuggestionbreak