Key links by URL as the svelte-spa-router link svelte action does not update correctly

This commit is contained in:
Andrew Kingston 2021-12-08 08:35:19 +00:00
parent 3212d2f447
commit 7886b383f5
1 changed files with 14 additions and 12 deletions

View File

@ -79,18 +79,20 @@
{componentText} {componentText}
</a> </a>
{:else} {:else}
<a {#key url}
use:linkable <a
href={url || "/"} use:linkable
use:styleable={styles} href={url || "/"}
class:placeholder use:styleable={styles}
class:bold class:placeholder
class:italic class:bold
class:underline class:italic
class="align--{align || 'left'} size--{size || 'M'}" class:underline
> class="align--{align || 'left'} size--{size || 'M'}"
{componentText} >
</a> {componentText}
</a>
{/key}
{/if} {/if}
{/if} {/if}