No, it is not impossible to prevent event propagation in vuedraggable. You can use the v-on:click.stop or v-on:drag.stop directive to stop the event propagation. For example, if you want to prevent the click event from propagating to the parent element, you can use the v-on:click.stop directive as follows:
<div v-on:click.stop>
<draggable>
...
</draggable>
</div>
This will prevent the click event from propagating beyond the draggable element. Similarly, you can use the v-on:drag.stop directive to prevent the drag event from propagating to the parent element.
Asked: 2021-07-23 11:00:00 +0000
Seen: 15 times
Last updated: Oct 13 '21