Skip to content

Commit f363cfb

Browse files
committed
improved v-for syntax in checkbox group examples
1 parent 3ec762e commit f363cfb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/components/checkbox.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ When using the checkbox with `arrays` or `objects`, the selected values will be
9494
<template>
9595
<div class="space-y-2">
9696
<fwb-checkbox
97-
v-for="fruit, i in fruits"
97+
v-for="(fruit, i) in fruits"
9898
:key="i"
9999
v-model="selectedFruits"
100100
:label="fruit"

docs/components/checkbox/examples/FwbCheckboxExampleGroup.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="vp-raw">
33
<div class="space-y-2">
44
<fwb-checkbox
5-
v-for="fruit, i in fruits"
5+
v-for="(fruit, i) in fruits"
66
:key="i"
77
v-model="selectedFruits"
88
:label="fruit"

0 commit comments

Comments
 (0)