chore: fix drag class

This commit is contained in:
Yohan Boniface 2024-03-15 11:36:07 +01:00
parent 44bae50c85
commit 7fd2f0ded9
2 changed files with 1 additions and 2 deletions

View file

@ -35,7 +35,7 @@ export default class Orderable {
// e.target is the source node. // e.target is the source node.
const realSrc = document.elementFromPoint(e.clientX, e.clientY); const realSrc = document.elementFromPoint(e.clientX, e.clientY);
// Only allow drag from the handle // Only allow drag from the handle
if (!realSrc.classList.contains('drag-handle')) { if (!realSrc.classList.contains('icon-drag')) {
e.preventDefault() e.preventDefault()
return return
} }

View file

@ -327,7 +327,6 @@ U.DrawToolbar = L.Toolbar.Control.extend({
}, },
}) })
U.DropControl = L.Class.extend({ U.DropControl = L.Class.extend({
initialize: function (map) { initialize: function (map) {
this.map = map this.map = map