fix: add type=button

This commit is contained in:
Xyphyn committed 2023-08-08 07:58:42 -07:00
1 parent d8b49a7ce2
commit d22d9b09fd
1 file changed
+2 -1
+2 -1
View File
@@ -47,8 +47,9 @@
{#each options.slice(0, 4) as option, index}
<button
class={buttonClass(selected == option)}
on:click={() => (selected = option)}
on:click|preventDefault={() => (selected = option)}
disabled={disabled[index] ?? false}
type="button"
>
{optionNames[index] || option}
{#if headless && option == selected}