From 7fd2f0ded9ed4ebbc9976a5d18acf2d441f7e12e Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Fri, 15 Mar 2024 11:36:07 +0100 Subject: [PATCH] chore: fix drag class --- umap/static/umap/js/modules/orderable.js | 2 +- umap/static/umap/js/umap.controls.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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