fix clicking twice outside context menu to hide

This commit is contained in:
geoffrey45
2022-10-14 17:53:28 +03:00
committed by Mungai Njoroge
parent 823b52fc04
commit 39fd43aff0
4 changed files with 19 additions and 7 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ export default defineStore("context-menu", {
state: () => ({
visible: false,
options: {} as Option[],
src: <null | string>"",
src: <null | ContextSrc>"",
elem: <HTMLElement | null>null,
}),
actions: {