UPDATE: I forget to remove v-if in that div level which prevents the underlying element from getting rendered
Quick question, in Vue, if I have a component like:
<uploader></uploader>
inside its template:
<div><input type="file" ref="upldr" /></div>
I wonder why I can not access that input DOM like:
this.$refs.upldr
It gives me undefined
Does it mean that when the mounted hook gets called, all the DOM elements inside the template have not been rendered?
Thanks,

mountedis called. Here's a simple fiddle using the info you've provided: jsfiddle.net/qp0g1m76 - thanksd<input/>inside of av-ifthat is evaluating to false. In that case, thev-ifelement and its contents would not be present in the DOM. If that's not the case, you'd need to share an mcve, as there could be a lot of things causing the value to beundefined. - thanksd