Skip to content

Commit

Permalink
fix(choice): validate on store change (closes #170)
Browse files Browse the repository at this point in the history
Co-authored-by: Manuel Sommerhalder <hello@oncode.ch>
  • Loading branch information
2 people authored and mdauner committed Sep 1, 2020
1 parent 95ece4a commit 98fe7fa
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 @@ -42,19 +42,19 @@
id="{name}-{option.id}"
type="checkbox"
{name}
bind:group={$choice}
on:change={onChange}
on:blur={onBlur}
bind:group={$choice}
value={option.id}
{...$$restProps} />
{:else}
<input
id="{name}-{option.id}"
type="radio"
{name}
bind:group={$choice}
on:change={onChange}
on:blur={onBlur}
bind:group={$choice}
value={option.id}
{...$$restProps} />
{/if}
Expand Down

0 comments on commit 98fe7fa

Please sign in to comment.