fix TreeView item warning about anchor

This commit is contained in:
Keviin Åberg Kultalahti 2021-05-14 17:03:37 +02:00
parent 47bc197b45
commit 3a9a76763e
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
<script>
export let selected = false
export let open = false
export let href = false
export let title
export let icon
</script>
@ -10,7 +11,7 @@
class:is-open={open}
class="spectrum-TreeView-item"
>
<a on:click class="spectrum-TreeView-itemLink" href="#">
<a on:click class="spectrum-TreeView-itemLink" {href}>
{#if $$slots.default}
<svg
class="spectrum-Icon spectrum-UIIcon-ChevronRight100 spectrum-TreeView-itemIndicator"