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
fix: issues in displaying the suggestions menu on EnvInput (#3280)
Akash K1a3d9f18abce
diff --git a/packages/hoppscotch-common/src/components/smart/EnvInput.vue b/packages/hoppscotch-common/src/components/smart/EnvInput.vueindex 9d2e8c25e..09295173c 100644--- a/packages/hoppscotch-common/src/components/smart/EnvInput.vue+++ b/packages/hoppscotch-common/src/components/smart/EnvInput.vue@@ -1,5 +1,5 @@<template>- <div class="autocomplete-wrapper">+ <div ref="autoCompleteWrapper" class="autocomplete-wrapper"><divclass="absolute inset-0 flex flex-1 divide-x divide-dividerLight overflow-x-auto">@@ -125,8 +125,9 @@ const currentSuggestionIndex = ref(-1)const showSuggestionPopover = ref(false)const suggestionsMenu = ref<any | null>(null)+const autoCompleteWrapper = ref<any | null>(null)-onClickOutside(suggestionsMenu, () => {+onClickOutside(autoCompleteWrapper, () => {showSuggestionPopover.value = false})