add type button to element

This commit is contained in:
Niccolo Borgioli 2024-09-20 18:15:38 +00:00
parent 14d3e9eb03
commit f61d3ece8b

View File

@ -18,7 +18,7 @@
export let icon: keyof typeof map
</script>
<button on:click {...$$restProps}>
<button type="button" on:click {...$$restProps}>
{#if map[icon]}
<svelte:component this={map[icon]} />
{/if}