Close Switcher when clicking on a link
This commit is contained in:
@@ -37,7 +37,7 @@
|
|||||||
<ul>
|
<ul>
|
||||||
{#each links as { icon, alt, url, text }}
|
{#each links as { icon, alt, url, text }}
|
||||||
<li>
|
<li>
|
||||||
<a href={url} sveltekit:prefetch sveltekit:noscroll>
|
<a href={url} on:click={toggleSwitcher} sveltekit:prefetch sveltekit:noscroll>
|
||||||
<img src="/images/icons/{icon}.svg" alt={alt} class="icon" width="32" height="32" loading="lazy">
|
<img src="/images/icons/{icon}.svg" alt={alt} class="icon" width="32" height="32" loading="lazy">
|
||||||
<span>{text}</span>
|
<span>{text}</span>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user