Skip to content

Commit

Permalink
feat(choice): use name inside id
Browse files Browse the repository at this point in the history
  • Loading branch information
Manuel Sommerhalder authored and mdauner committed Sep 1, 2020
1 parent 0bf0466 commit cd13739
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Choice.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
{#each options as option}
{#if multiple}
<input
id={option.id}
id="{name}-{option.id}"
type="checkbox"
{name}
on:change={onChange}
Expand All @@ -49,7 +49,7 @@
{...$$restProps} />
{:else}
<input
id={option.id}
id="{name}-{option.id}"
type="radio"
{name}
on:change={onChange}
Expand Down

0 comments on commit cd13739

Please sign in to comment.