From 0f92863033316c8a87c02b775fffe78ccddd3292 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20=C4=90=E1=BB=A9c=20H=C3=A0o?= <39975444+haond10adp@users.noreply.github.com> Date: Sun, 27 Jun 2021 00:57:48 +0700 Subject: [PATCH] tutorial: add name attribute to inputs (#5649) --- .../06-bindings/04-group-inputs/app-a/App.svelte | 12 ++++++------ .../06-bindings/04-group-inputs/app-b/App.svelte | 8 ++++---- .../tutorial/06-bindings/04-group-inputs/text.md | 4 ++-- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/site/content/tutorial/06-bindings/04-group-inputs/app-a/App.svelte b/site/content/tutorial/06-bindings/04-group-inputs/app-a/App.svelte index 038790bc51..3a29f89484 100644 --- a/site/content/tutorial/06-bindings/04-group-inputs/app-a/App.svelte +++ b/site/content/tutorial/06-bindings/04-group-inputs/app-a/App.svelte @@ -11,34 +11,34 @@

Size

Flavours

diff --git a/site/content/tutorial/06-bindings/04-group-inputs/app-b/App.svelte b/site/content/tutorial/06-bindings/04-group-inputs/app-b/App.svelte index b12704b87d..d97db41f0b 100644 --- a/site/content/tutorial/06-bindings/04-group-inputs/app-b/App.svelte +++ b/site/content/tutorial/06-bindings/04-group-inputs/app-b/App.svelte @@ -17,17 +17,17 @@

Size

@@ -35,7 +35,7 @@ {#each menu as flavour} {/each} diff --git a/site/content/tutorial/06-bindings/04-group-inputs/text.md b/site/content/tutorial/06-bindings/04-group-inputs/text.md index 97edb8db76..b48b23921f 100644 --- a/site/content/tutorial/06-bindings/04-group-inputs/text.md +++ b/site/content/tutorial/06-bindings/04-group-inputs/text.md @@ -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 - + ``` 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 `