From 39fd43aff05827907145fde4da49f49e2e4491b3 Mon Sep 17 00:00:00 2001 From: geoffrey45 Date: Fri, 14 Oct 2022 17:53:28 +0300 Subject: [PATCH] fix clicking twice outside context menu to hide --- src/components/ContextMenu.vue | 2 ++ src/components/shared/SongItem.vue | 15 +++++++++------ src/composables/context.ts | 7 +++++++ src/stores/context.ts | 2 +- 4 files changed, 19 insertions(+), 7 deletions(-) diff --git a/src/components/ContextMenu.vue b/src/components/ContextMenu.vue index 82a1c552..5f5d4062 100644 --- a/src/components/ContextMenu.vue +++ b/src/components/ContextMenu.vue @@ -44,6 +44,8 @@ onClickOutside(contextMenu, (e) => { e.stopImmediatePropagation(); clickCount = 0; } +}, { + capture: false }); diff --git a/src/components/shared/SongItem.vue b/src/components/shared/SongItem.vue index 9f2632b4..83ff2b7b 100644 --- a/src/components/shared/SongItem.vue +++ b/src/components/shared/SongItem.vue @@ -1,7 +1,7 @@