Alfred-Skyblue / vue-draggable-plus

Universal Drag-and-Drop Component Supporting both Vue 3 and Vue 2
https://vue-draggable-plus.pages.dev/en/
MIT License
2.74k stars 106 forks source link

About the problem that the Firefox browser will open a new tab when dragging and dropping. #36

Open Alfred-Skyblue opened 11 months ago

Alfred-Skyblue commented 11 months ago

In the Firefox browser, when dragging, it opens a new tab, which can be addressed using the following method:

document.body.ondrop = function (event) {
  event.preventDefault()
  event.stopPropagation()
}

Thanks to @Pandaft for the #35