Skip to content

Commit 7e85ff1

Browse files
authored
docs: example checkbox - value should be true (#4261)
1 parent 03decc2 commit 7e85ff1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/src/pages/examples/checkboxes-and-radio.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ The only requirements are that the fields:
2727
When using `Field` slot props with checkbox/radio components, you still need to provide the `type` and `value` props to the `Field` node itself.
2828

2929
```vue-html
30-
<Field v-slot="{ field }" name="terms" type="checkbox" :value="false">
30+
<Field v-slot="{ field }" name="terms" type="checkbox" :value="true">
3131
<label>
32-
<input type="checkbox" name="terms" v-bind="field" :value="false" />
32+
<input type="checkbox" name="terms" v-bind="field" :value="true" />
3333
I agree
3434
</label>
3535
</Field>
@@ -38,7 +38,7 @@ When using `Field` slot props with checkbox/radio components, you still need to
3838
The same caveat applies if you are rendering another component with `as` prop:
3939

4040
```vue-html
41-
<Field as="my-checkbox" name="terms" type="checkbox" :value="false" />
41+
<Field as="my-checkbox" name="terms" type="checkbox" :value="true" />
4242
```
4343

4444
</DocTip>

0 commit comments

Comments
 (0)