chore: fix drag class
This commit is contained in:
parent
44bae50c85
commit
7fd2f0ded9
2 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -327,7 +327,6 @@ U.DrawToolbar = L.Toolbar.Control.extend({
|
|||
},
|
||||
})
|
||||
|
||||
|
||||
U.DropControl = L.Class.extend({
|
||||
initialize: function (map) {
|
||||
this.map = map
|
||||
|
|
Loading…
Reference in a new issue