VNodes' refs are discarded when passed to `<component :is="vnodes" ref="custom" />`
Version
3.0.0-rc.10
Reproduction link
https://jsfiddle.net/mxv2r4gh/
Steps to reproduce
- click the button
What is expected?
The watcher on viewRef
should trigger
What is actually happening?
viewRef
doesn't change
The only line I changed was this:
<component :is="Component" ref="custom" />
To this:
<component :is="Component" :ref="custom" />
Do note that console.log(value.$el)
takes a lot of time in JSFiddle because it prints that object in its own console. If you just log 1
it will work as expected.