Using vue, I am trying to trigger multiple events on a click and pass 'event' variable, so that I can use event.target
.
I tried this:
<element @click="onSubmit(), onChange()"></element>
And in my methods, I tried
methods: {
onSubmit(e) {
console.log(e)
},
onChange(e) {
console.log(e)
}
}
Cannot read property 'target' of undefined
What is the proper way of achieving this?