Answer the question
In order to leave comments, you need to log in
How to get $event in vue if event has more than one parameter?
The third party component emits an event with two parameters:
@dragstop="dragged"
dragged(x, y) {
console.log(x, y);
}
// 120, 50
@dragstop="dragged(id, $event)"
dragged(id, x, y) {
console.log(id, x, y);
}
// myid 120 undefined
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question