Skip to content

Commit

Permalink
fix: fixed template refs with v-for
Browse files Browse the repository at this point in the history
  • Loading branch information
NataliaTepluhina committed Aug 2, 2020
1 parent 435b91f commit b9217d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/guide/composition-api-template-refs.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ Composition API template refs do not have special handling when used inside `v-f

```html
<template>
<div v-for="(item, i) in list" :ref="el => { divs[i] = el }">
<div v-for="(item, i) in list" :ref="el => { if (el) divs[i] = el }">
{{ item }}
</div>
</template>
Expand Down

0 comments on commit b9217d8

Please sign in to comment.