Skip to content

Refs inside v-for doesn't apply through v-bind #10696

Closed
@MichailShcherbakov

Description

@MichailShcherbakov

Vue version

3.4.21

Link to minimal reproduction

https://stackblitz.com/edit/vitejs-vite-auhpmh?file=src%2FApp.vue

Steps to reproduce

  1. Open App.vue
  2. Change ref="itemRefs" to v-bind="props" in the 23 line

What is expected?

itemRefs should have an array of the elements

What is actually happening?

itemRefs have only the last element

System Info

System:
    OS: Linux 5.15 Arch Linux
    CPU: (8) x64 Intel(R) Core(TM) i3-10100F CPU @ 3.60GHz
    Memory: 3.33 GB / 7.71 GB
    Container: Yes
    Shell: 5.2.26 - /usr/bin/bash
  Binaries:
    Node: 20.12.0 - ~/.nvm/versions/node/v20.12.0/bin/node
    Yarn: 1.22.22 - ~/.nvm/versions/node/v20.12.0/bin/yarn
    npm: 10.5.0 - ~/.nvm/versions/node/v20.12.0/bin/npm
    pnpm: 8.15.6 - ~/.nvm/versions/node/v20.12.0/bin/pnpm
  npmPackages:
    vue: ^3.4.21 => 3.4.21

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    need guidanceThe approach/solution in the PR is unclear and requires guidance from maintainer to proceed further.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions