fix: add type=button
This commit is contained in:
1 parent
d8b49a7ce2
commit
d22d9b09fd
1 file changed
+2
-1
@@ -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}
|
||||
|
||||
Reference in new issue
Block a user