Skip to content

Commit f24614c

Browse files
authored
[docs] Add missing parent element to code example. (#7309)
The div is part of the code, but not part of the code snippet of the text
1 parent b6441eb commit f24614c

File tree

1 file changed

+10
-8
lines changed
  • site/content/tutorial/06-bindings/09-each-block-bindings

1 file changed

+10
-8
lines changed

site/content/tutorial/06-bindings/09-each-block-bindings/text.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,17 @@ You can even bind to properties inside an `each` block.
66

77
```html
88
{#each todos as todo}
9-
<input
10-
type=checkbox
11-
bind:checked={todo.done}
12-
>
9+
<div class:done={todo.done}>
10+
<input
11+
type=checkbox
12+
bind:checked={todo.done}
13+
>
1314

14-
<input
15-
placeholder="What needs to be done?"
16-
bind:value={todo.text}
17-
>
15+
<input
16+
placeholder="What needs to be done?"
17+
bind:value={todo.text}
18+
>
19+
</div>
1820
{/each}
1921
```
2022

0 commit comments

Comments
 (0)