Skip to content

Commit cd13739

Browse files
Manuel Sommerhaldermdauner
authored andcommitted
feat(choice): use name inside id
1 parent 0bf0466 commit cd13739

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Choice.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
{#each options as option}
4040
{#if multiple}
4141
<input
42-
id={option.id}
42+
id="{name}-{option.id}"
4343
type="checkbox"
4444
{name}
4545
on:change={onChange}
@@ -49,7 +49,7 @@
4949
{...$$restProps} />
5050
{:else}
5151
<input
52-
id={option.id}
52+
id="{name}-{option.id}"
5353
type="radio"
5454
{name}
5555
on:change={onChange}

0 commit comments

Comments
 (0)