Skip to content

Commit 3fce6b5

Browse files
committed
feat(snippets): listen context-menu:close to remove highlight
1 parent 7c71b49 commit 3fce6b5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/renderer/components/snippets/SnippetListItem.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ onClickOutside(itemRef, () => {
6262
const onClickContextMenu = async () => {
6363
isHighlighted.value = true
6464
65+
ipc.once('context-menu:close', () => {
66+
isHighlighted.value = false
67+
})
68+
6569
const { action, data, type } = await ipc.invoke<
6670
ContextMenuResponse,
6771
ContextMenuPayload

0 commit comments

Comments
 (0)