Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Vue refs works differently in template vs render function #8225

Closed
@adalberth

Description

@adalberth

Version

2.5.17-beta.0

Reproduction link

https://codepen.io/Stupid/pen/WJmgjm?editors=1010

Steps to reproduce

Create ref within template and in render function, template returns array, render function returns latest item in loop.

What is expected?

render functions should return an array of the "refs" (https://vuejs.org/v2/guide/render-function.html#v-if-and-v-for)

What is actually happening?

Of course it makes sense that the render function returns the last ref as JS should. But in vue shouldn't it return an array as the template do?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions