Skip to content

Commit 657ab78

Browse files
committed
remove
1 parent 0d86023 commit 657ab78

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

documentation/docs/03-template-syntax/11-bind.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -114,20 +114,6 @@ Inputs that work together can use `bind:group`.
114114
<input type="checkbox" bind:group={fillings} value="Guac (extra)" />
115115
```
116116

117-
You can give the group a default value by setting the `checked` property on the elements that should be selected initially. This way, when the input is part of a form and its `form.reset()` method is invoked, it will revert to that value instead of the empty string (for radio groups) or the empty array (for checkbox groups). Note that for the initial render the value of the binding takes precedence if it's not `null` or `undefined`.
118-
119-
```svelte
120-
<script>
121-
let tortilla = $state('Plain');
122-
</script>
123-
124-
<form>
125-
<input type="radio" bind:group={tortilla} value="Plain" checked />
126-
<input type="radio" bind:group={tortilla} value="Whole wheat" />
127-
<input type="reset" value="Reset">
128-
</form>
129-
```
130-
131117
> [!NOTE] `bind:group` only works if the inputs are in the same Svelte component.
132118
133119
## `<input bind:files>`

0 commit comments

Comments
 (0)