Subscribe on changes!

Breaking behaviour in minor update with $refs in a v-for loop

avatar
Mar 10th 2022

Version

3.2.25

Reproduction link

sfc.vuejs.org/

Steps to reproduce

Loop refs in a v-for loop and access them.

Version v3.2.24 and earlier directly return the referenced object, v3.2.25 and later return an array containing the element(s)

What is expected?

That refs directly return a referenced object

What is actually happening?

The refs return an array containing the referenced element(s)


I ran into this when someone made a minor update to Vue.

I see the the behaviour of v3.2.25 as correct/better but a breaking change should not be in a minor version update

avatar
Mar 10th 2022