diff options
Diffstat (limited to 'packages/client/src/components/RepositoryCloneDropdown.vue')
-rw-r--r-- | packages/client/src/components/RepositoryCloneDropdown.vue | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/client/src/components/RepositoryCloneDropdown.vue b/packages/client/src/components/RepositoryCloneDropdown.vue index 335604f..77b26fe 100644 --- a/packages/client/src/components/RepositoryCloneDropdown.vue +++ b/packages/client/src/components/RepositoryCloneDropdown.vue @@ -107,7 +107,7 @@ export default defineComponent({ }); } - const clickOutsideDropdown = (event: Event) => { + function clickOutsideDropdown(event: Event) { const target = event.target as HTMLElement; if(dropdown_menu && dropdown_menu.contains(target) === false && target !== dropdown_button) { @@ -122,7 +122,8 @@ export default defineComponent({ if(dropdown_menu.classList.contains("show")) { dropdown_menu.classList.remove("show"); document.removeEventListener("click", clickOutsideDropdown); - } else { + } + else { dropdown_menu.classList.add("show"); document.addEventListener("click", clickOutsideDropdown); } @@ -246,4 +247,4 @@ export default defineComponent({ margin-left: 0.5rem; font-weight: 700; } -</style> +</style>
\ No newline at end of file |