Skip to content

Commit 0c5a612

Browse files
author
Sam Vitare
authored
Update forms.md (#2420)
Added a key property to line 344 on the select option dynamic rendering.
1 parent f9e5233 commit 0c5a612

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guide/essentials/forms.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ export default {
341341

342342
```vue-html
343343
<select v-model="selected">
344-
<option v-for="option in options" :value="option.value">
344+
<option v-for="option in options" :key="option.value" :value="option.value">
345345
{{ option.text }}
346346
</option>
347347
</select>

0 commit comments

Comments
 (0)