diff --git a/components/card/Note.vue b/components/card/Note.vue index 037928b..1411e29 100644 --- a/components/card/Note.vue +++ b/components/card/Note.vue @@ -11,12 +11,10 @@ -
+
+ ref="options" + v-if="showOptions">
(false); const showOptions = ref(false); + const options = ref(); + const toggleOptions = () => { showOptions.value = !showOptions.value; }; @@ -58,4 +58,8 @@ const noteDetail = (id: string) => { navigateTo(`/notes/${id}`); }; + + onClickOutside(options, (event) => { + toggleOptions(); + });