Skip to content

Commit a60104c

Browse files
committed
Add dnd
1 parent 05b5469 commit a60104c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

apps/webpage/src/main.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,10 @@ const app = {
563563
e.preventDefault();
564564

565565
const droppedOnId =
566-
target.getAttribute("data-drag-item") ?? target.id ?? null;
566+
target.getAttribute("data-drag-item") ||
567+
target.id ||
568+
target.getAttribute("data-drop-zone") ||
569+
null;
567570
const rect = target.getBoundingClientRect();
568571
const dropBefore = e.clientY < rect.top + rect.height / 2;
569572
const hostEl = this.findHost(target);

0 commit comments

Comments
 (0)