From 339c9125a713a2b9f51562cde8de72cb261345a0 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Wed, 27 Dec 2023 19:49:24 -0800 Subject: [PATCH] fix: sidebar button click register issue --- src/lib/components/layout/Sidebar.svelte | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/lib/components/layout/Sidebar.svelte b/src/lib/components/layout/Sidebar.svelte index 6d7b33bd..8a0a27da 100644 --- a/src/lib/components/layout/Sidebar.svelte +++ b/src/lib/components/layout/Sidebar.svelte @@ -382,11 +382,6 @@ on:click={() => { showDropdown = !showDropdown; }} - on:focusout={() => { - setTimeout(() => { - showDropdown = false; - }, 150); - }} >
{ goto('/admin'); + showDropdown = false; }} >
@@ -470,6 +466,7 @@ on:click={() => { localStorage.removeItem('token'); location.href = '/auth'; + showDropdown = false; }} >