Vanessa 2024-09-22 22:42:32 +08:00
parent 2cf0b09282
commit d081e3cad0
5 changed files with 5 additions and 0 deletions

View file

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