🎨 drag

This commit is contained in:
Vanessa 2023-10-26 17:35:48 +08:00
parent af651215a9
commit de9347fc97
2 changed files with 4 additions and 6 deletions

View file

@ -494,7 +494,7 @@ export class Files extends Model {
});
});
this.element.addEventListener("drop", async (event: DragEvent & { target: HTMLElement }) => {
const newElement = hasClosestByTag(event.target, "LI");
const newElement = this.element.querySelector(".dragover, .dragover__bottom, .dragover__top");
if (!newElement) {
return;
}