We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4dccbbc commit 06f41adCopy full SHA for 06f41ad
src/core/vdom/modules/ref.js
@@ -32,7 +32,7 @@ export function registerRef (vnode: VNodeWithData, isRemoval: ?boolean) {
32
}
33
} else {
34
if (vnode.data.refInFor) {
35
- if (Array.isArray(refs[key])) {
+ if (Array.isArray(refs[key]) && refs[key].indexOf(ref) < 0) {
36
refs[key].push(ref)
37
38
refs[key] = [ref]
0 commit comments