Skip to content

Commit

Permalink
feat(snippets): listen context-menu:close to remove highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
antonreshetov committed Apr 3, 2022
1 parent 7c71b49 commit 3fce6b5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/renderer/components/snippets/SnippetListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ onClickOutside(itemRef, () => {
const onClickContextMenu = async () => {
isHighlighted.value = true
ipc.once('context-menu:close', () => {
isHighlighted.value = false
})
const { action, data, type } = await ipc.invoke<
ContextMenuResponse,
ContextMenuPayload
Expand Down

0 comments on commit 3fce6b5

Please sign in to comment.