Subscribe on changes!

refs-inside-v-for not working

avatar
Mar 9th 2022

Version

3.2.31

Reproduction link

github.com

Steps to reproduce

  1. git clone https://github.com/sunny-repo88/vue3-refs-inside-v-for-bug.git
  2. npm install
  3. npm run dev

What is expected?

should alert 1,2,3

detect the li element same as playground example in https://vuejs.org/guide/essentials/template-refs.html#refs-inside-v-for

What is actually happening?

alert empty string. cannot detect li element using refs

avatar
Mar 9th 2022

Duplicate of #5525