Key links by URL as the svelte-spa-router link svelte action does not update correctly
This commit is contained in:
parent
2c081c6557
commit
cb1f870831
|
@ -79,18 +79,20 @@
|
|||
{componentText}
|
||||
</a>
|
||||
{:else}
|
||||
<a
|
||||
use:linkable
|
||||
href={url || "/"}
|
||||
use:styleable={styles}
|
||||
class:placeholder
|
||||
class:bold
|
||||
class:italic
|
||||
class:underline
|
||||
class="align--{align || 'left'} size--{size || 'M'}"
|
||||
>
|
||||
{componentText}
|
||||
</a>
|
||||
{#key url}
|
||||
<a
|
||||
use:linkable
|
||||
href={url || "/"}
|
||||
use:styleable={styles}
|
||||
class:placeholder
|
||||
class:bold
|
||||
class:italic
|
||||
class:underline
|
||||
class="align--{align || 'left'} size--{size || 'M'}"
|
||||
>
|
||||
{componentText}
|
||||
</a>
|
||||
{/key}
|
||||
{/if}
|
||||
{/if}
|
||||
|
||||
|
|
Loading…
Reference in New Issue