Commit 339c9125 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: sidebar button click register issue

parent 657318ae
...@@ -382,11 +382,6 @@ ...@@ -382,11 +382,6 @@
on:click={() => { on:click={() => {
showDropdown = !showDropdown; showDropdown = !showDropdown;
}} }}
on:focusout={() => {
setTimeout(() => {
showDropdown = false;
}, 150);
}}
> >
<div class=" self-center mr-3"> <div class=" self-center mr-3">
<img <img
...@@ -409,6 +404,7 @@ ...@@ -409,6 +404,7 @@
class="flex py-2.5 px-3.5 w-full hover:bg-gray-800 transition" class="flex py-2.5 px-3.5 w-full hover:bg-gray-800 transition"
on:click={() => { on:click={() => {
goto('/admin'); goto('/admin');
showDropdown = false;
}} }}
> >
<div class=" self-center mr-3"> <div class=" self-center mr-3">
...@@ -470,6 +466,7 @@ ...@@ -470,6 +466,7 @@
on:click={() => { on:click={() => {
localStorage.removeItem('token'); localStorage.removeItem('token');
location.href = '/auth'; location.href = '/auth';
showDropdown = false;
}} }}
> >
<div class=" self-center mr-3"> <div class=" self-center mr-3">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment