2.5.13
https://jsfiddle.net/hhu05cd2/18/
Assign any element with ref to 0.
Such as
p exist in $refs
p isn't in $refs
Workaround is to put additional char to :ref such as
Now, that p will be in this.$refs.
Reference: https://forum.vuejs.org/t/element-with-ref-0-disappear-from-refs/27925
Looks like a bug. Probably this check should be replaced with if (!isDef(key)) return
Most helpful comment
Looks like a bug. Probably this check should be replaced with
if (!isDef(key)) return