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.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2021-07-23 11:00:00 +0000
Seen: 15 times
Last updated: Oct 13 '21
How can I detect the fullscreen button click event of an HTML5 video?
Why does the alert appear only when I click on something else?
How can I obtain comprehensive logs for Amazon Cognito after an unsuccessful authentication attempt?
Does BlobClient.OpenWriteAsync produce several BlobCreated occurrences?
Why isn't my CodePipeline pipeline triggered by my CloudWatch Event rule?
What is the method for adding markers to a map with the Leaflet "click" event handler?
How can an event table be created utilizing FSCalendar?
What is the process for including a delete button in a row that can be clicked?
How can I make the Jquery button work multiple times instead of just once?