Close Switcher when clicking on a link

This commit is contained in:
2021-10-08 00:14:43 +02:00
parent 70b68c5d24
commit a7023c3a0f

View File

@@ -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>