Update the button to not take a handler function and just bubble the click event
This commit is contained in:
parent
ba093cdfa7
commit
4bdbe8f231
1 changed files with 1 additions and 2 deletions
|
|
@ -2,7 +2,6 @@
|
|||
export let height: string|number = "50px";
|
||||
export let width: string|number = "unset";
|
||||
export let background: string = "#00aa00";
|
||||
export let handler: (e: Event) => unknown;
|
||||
export let hoverBackground: string = "transparent";
|
||||
export let classes: string = "";
|
||||
export let title: string = "";
|
||||
|
|
@ -46,7 +45,7 @@ $: if (typeof(width) == "string") {
|
|||
<button
|
||||
class="clickable"
|
||||
{title}
|
||||
on:click|trusted|stopPropagation={handler}
|
||||
on:click|trusted|stopPropagation
|
||||
>
|
||||
<slot></slot>
|
||||
</button>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue