@ -7,7 +7,7 @@ If you have multiple inputs relating to the same value, you can use `bind:group`
Add `bind:group` to each input:
```html
< input type = radio bind:group = {scoops} value= {1} >
< input type = radio bind:group = {scoops} name= "scoops" value= {1} >
```
In this case, we could make the code simpler by moving the checkbox inputs into an `each` block. First, add a `menu` variable to the `<script>` block...
@ -27,7 +27,7 @@ let menu = [
{#each menu as flavour}
< label >
< input type = checkbox bind:group = {flavours} value= {flavour} >
< input type = checkbox bind:group = {flavours} name= "flavours" value= {flavour} >
{flavour}
< / label >
{/each}