Vue: Conflict between v-once and ref

Created on 31 Oct 2017  Â·  2Comments  Â·  Source: vuejs/vue

Version

2.5.2

Reproduction link

https://jsfiddle.net/pb32s2p3/6/

Steps to reproduce

Open console (ctrl+shift+i in chrome, for example).

What is expected?

Output in console:

<div></div>
<div></div>

What is actually happening?

Output in console:

<div></div>
undefined

If remove 'v-once' or change vue version to 2.4.4 (in 2.5.1 and 2.5.0 bug remains) problem disappears.

Thanks.

bug

All 2 comments

Seems like this have been fixed by https://github.com/vuejs/vue/pull/6837

@javoski That's true! I checked with the last version and it's fixed

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bfis picture bfis  Â·  3Comments

fergaldoyle picture fergaldoyle  Â·  3Comments

lmnsg picture lmnsg  Â·  3Comments

finico picture finico  Â·  3Comments

franciscolourenco picture franciscolourenco  Â·  3Comments