Answer the question
In order to leave comments, you need to log in
How to continue bubbling an event?
there are two elements:
<export-data :data="data"><button></button></export-data>
Answer the question
In order to leave comments, you need to log in
Try after the actions taken, it will start the event again. On an element this.$el
or parent, call dispatchEvent
.
That is, you cannot stop the event and then continue it. Will have to call it again. https://developer.mozilla.org/docs/Web/Guide/Event...
<template>
<div @click="clicked">...</div>
</template>
<script>
export default {
...
methods: {
clicked(ev) {
const savedEvent = ev;
ev.stopPropagation();
// ... что-то на сервере
this.$el.dispatchEvent(savedEvent);
}
}
};
</script>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question