Skip to content

Commit 675856a

Browse files
committed
tweak
1 parent fe77111 commit 675856a

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

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

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ Since 5.6.0, if an `<input>` has a `defaultChecked` attribute and is part of a f
119119

120120
## `<input bind:indeterminate>`
121121

122-
Checkbox can be in [indeterminate](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/indeterminate) state, though it is still either checked or unchecked:
122+
Checkboxes can be in an [indeterminate](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/indeterminate) state, independently of whether they are checked or unchecked:
123123

124124
```svelte
125125
<script>
@@ -129,16 +129,14 @@ Checkbox can be in [indeterminate](https://developer.mozilla.org/en-US/docs/Web/
129129
130130
<form>
131131
<input type="checkbox" bind:checked bind:indeterminate>
132-
<p>
133-
Choice:
134-
{#if indeterminate}
135-
no choice was done yet
136-
{:else if checked}
137-
the option is checked
138-
{:else}
139-
the option is unchecked
140-
{/if}
141-
</p>
132+
133+
{#if indeterminate}
134+
waiting...
135+
{:else if checked}
136+
checked
137+
{:else}
138+
unchecked
139+
{/if}
142140
</form>
143141
```
144142

0 commit comments

Comments
 (0)