Answer the question
In order to leave comments, you need to log in
How to bind event handling for VNode ( vuejs )?
How to bind processing to an event from a slot, the example outlined below.
For some reason, this.$slots.default[0].elm outputs undefined while walking in the console this.$slots.default[0] outputs the VNode object of the html
file:
<vue-input>
<input type="text" />
</vue-input>
export default {
name: 'VueInput',
created () {
this.$slots.default[0]. ????
}
}
Answer the question
In order to leave comments, you need to log in
How to bind processing to an event from a slot
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question