mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 09:00:12 +01:00
🎨 drag
This commit is contained in:
parent
af651215a9
commit
de9347fc97
2 changed files with 4 additions and 6 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue