diff --git a/umap/static/umap/js/modules/orderable.js b/umap/static/umap/js/modules/orderable.js index 76334581..850d0304 100644 --- a/umap/static/umap/js/modules/orderable.js +++ b/umap/static/umap/js/modules/orderable.js @@ -35,7 +35,7 @@ export default class Orderable { // e.target is the source node. const realSrc = document.elementFromPoint(e.clientX, e.clientY); // Only allow drag from the handle - if (!realSrc.classList.contains('drag-handle')) { + if (!realSrc.classList.contains('icon-drag')) { e.preventDefault() return } diff --git a/umap/static/umap/js/umap.controls.js b/umap/static/umap/js/umap.controls.js index e1710f3e..b16d6fe3 100644 --- a/umap/static/umap/js/umap.controls.js +++ b/umap/static/umap/js/umap.controls.js @@ -327,7 +327,6 @@ U.DrawToolbar = L.Toolbar.Control.extend({ }, }) - U.DropControl = L.Class.extend({ initialize: function (map) { this.map = map