Allow blocks which take children to work with DND
This commit is contained in:
parent
aaa448cca8
commit
c4bbaa6617
|
@ -147,7 +147,7 @@
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const element = e.target.closest(".component")
|
const element = e.target.closest(".component:not(.block)")
|
||||||
if (
|
if (
|
||||||
element &&
|
element &&
|
||||||
element.classList.contains("droppable") &&
|
element.classList.contains("droppable") &&
|
||||||
|
|
Loading…
Reference in New Issue