Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

fix: tippy not disappearing on request component modals

Andrew Bastin8796cec49330
diff --git a/components/http/Request.vue b/components/http/Request.vue
index d99393002..208a7d4a4 100644
--- a/components/http/Request.vue
+++ b/components/http/Request.vue
@@ -115,18 +115,33 @@
<SmartItem
:label="$t('import.curl')"
icon="import_export"
- @click.native="showCurlImportModal = !showCurlImportModal"
+ @click.native="
+ () => {
+ showCurlImportModal = !showCurlImportModal
+ sendOptions.tippy().hide()
+ }
+ "
/>
<SmartItem
:label="$t('show.code')"
icon="code"
- @click.native="showCodegenModal = !showCodegenModal"
+ @click.native="
+ () => {
+ showCodegenModal = !showCodegenModal
+ sendOptions.tippy().hide()
+ }
+ "
/>
<SmartItem
ref="clearAll"
:label="$t('action.clear_all')"
icon="clear_all"
- @click.native="clearContent()"
+ @click.native="
+ () => {
+ clearContent()
+ sendOptions.tippy().hide()
+ }
+ "
/>
</tippy>
</span>
@@ -165,13 +180,23 @@
ref="copyRequest"
:label="$t('request.copy_link')"
:icon="hasNavigatorShare ? 'share' : 'content_copy'"
- @click.native="copyRequest()"
+ @click.native="
+ () => {
+ copyRequest()
+ sendOptions.tippy().hide()
+ }
+ "
/>
<SmartItem
ref="saveRequest"
:label="$t('request.save_as')"
icon="create_new_folder"
- @click.native="showSaveRequestModal = true"
+ @click.native="
+ () => {
+ showSaveRequestModal = true
+ sendOptions.tippy().hide()
+ }
+ "
/>
</tippy>
</span>