Skip to content

Commit

Permalink
まとめた
Browse files Browse the repository at this point in the history
  • Loading branch information
mehm8128 committed Dec 2, 2023
1 parent 8e103ef commit 80e8814
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/components/UI/ClickOutside.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,10 @@ export default defineComponent({

onMounted(() => {
window.addEventListener(startEventName, onMouseDown, { capture: true })
})
onMounted(() => {
window.addEventListener(endEventName, onMouseUp, { capture: true })
})
onBeforeUnmount(() => {
window.removeEventListener(startEventName, onMouseDown, { capture: true })
})
onBeforeUnmount(() => {
window.removeEventListener(endEventName, onMouseUp, { capture: true })
})

Expand Down

0 comments on commit 80e8814

Please sign in to comment.