Browse Source

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

pull/4023/head
Andrew Kingston 5 years ago
parent
commit
cb1f870831
  1. 26
      packages/client/src/components/app/Link.svelte

26
packages/client/src/components/app/Link.svelte

@ -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…
Cancel
Save