Open
Description
Version
2.6.11
Reproduction link
https://jsfiddle.net/b71adnym/2/
Steps to reproduce
Nest a component with an inline-template that has a ref in a v-for.
What is expected?
component.$ref.ref should point to the respective element.
What is actually happening?
component.$ref.ref is a singleton array with the element reference.
checkInFor loops over the element ancestors up to the document root, so it believes that the ref is in a loop, but it actually isn't.
The check should stop at the component root.