From 4bbf220296765a20c3ba03c5351b21618a835424 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 25 Jul 2021 22:34:22 +0200 Subject: Reformated the client code a bit --- packages/client/src/components/RepositoryCloneDropdown.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'packages/client/src/components/RepositoryCloneDropdown.vue') 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; } - + \ No newline at end of file -- cgit v1.2.3-18-g5258