avoid collision with umbsortercontroller

This commit is contained in:
Lone Iversen
2024-05-16 15:40:58 +02:00
parent 3a488a5ce9
commit 2c18b2ba4a

View File

@@ -43,7 +43,9 @@ export class UmbDropzoneElement extends UmbLitElement {
document.removeEventListener('drop', this.#handleDrop.bind(this));
}
#handleDragEnter() {
#handleDragEnter(e: DragEvent) {
// Avoid collision with UmbSorterController
if (!e.dataTransfer?.types?.length) return;
this.toggleAttribute('dragging', true);
}