diff --git a/src/editor/panels.ts b/src/editor/panels.ts index e8536d1..1c288a8 100644 --- a/src/editor/panels.ts +++ b/src/editor/panels.ts @@ -28,7 +28,13 @@ for(const panel of document.querySelectorAll(".panel")){ }, false); panel.addEventListener("drop", (e: DragEvent) => { + if(e.dataTransfer?.files){ + return; + } + e.stopPropagation(); + e.preventDefault(); + panel.style.borderColor = ""; const id = e.dataTransfer?.getData("text/plain");