Button ref binding and restProps spreading fixed

This commit is contained in:
militant_gnome 2024-01-17 11:30:59 +02:00 committed by Eric Liu
commit bc4a3cd439

View file

@ -26,6 +26,6 @@
.join(" "); .join(" ");
</script> </script>
<Button bind:this="{ref}" class="{buttonClass}" {...$$restProps} on:click> <Button bind:ref {...$$restProps} class="{buttonClass}" on:click>
<svelte:component this="{icon}" slot="icon" size="{20}" /> <svelte:component this="{icon}" slot="icon" size="{20}" />
</Button> </Button>