Closed tirumalavasu closed 5 years ago
Unfortunately, it's not working with refs. Not sure honestly if it makes sense for them
Would it be possible for you to add:
ref: 'intermediate' <-- any naming you'd like inside the return parameter:
Eg:
return h(dynamic, {
props: finalProps,
ref: 'intermediate'
});
That way, the refs inside the v-template can be referenced.
Eg:
<v-runtime-template :template="xxxx" ref="runtimetemplate"></v-runtime-template>
And whatever is inside the v-template can be referenced by:
this.$refs.runtimetemplate.$refs.intermediate.$refs
@ridea-co have you tried it? i am bumping to this issue currenty, can't get the refs from runtime-template
Yup. I added it and it is working at the moment.
Just that it needs to be referenced all the way from the
Vue.compile(templateString) - solved my issue.
Example:
const compiledTemplate = Vue.compile(templateString)
render(h) {
return compiledTemplate.render.call(this, h)
}
@ridea-co , thanks for your suggestion
Error: 'Cannot read property 'validate' of undefined'
Any help?