mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-21 14:34:06 +01:00
⬆️ eslint
This commit is contained in:
parent
1087fe8d52
commit
ad10151684
8 changed files with 435 additions and 333 deletions
|
|
@ -19,7 +19,9 @@ export const globalClick = (event: MouseEvent & { target: HTMLElement }) => {
|
|||
document.querySelector("#dockMoveItem")?.remove();
|
||||
} else {
|
||||
const startElement = ghostElement.parentElement.querySelector(`[data-node-id="${ghostElement.getAttribute("data-node-id")}"]`) as HTMLElement;
|
||||
startElement ? startElement.style.opacity = "" : "";
|
||||
if (startElement) {
|
||||
startElement.style.opacity = "";
|
||||
}
|
||||
ghostElement.parentElement.querySelectorAll(".dragover__top, .dragover__bottom, .dragover").forEach((item: HTMLElement) => {
|
||||
item.classList.remove("dragover__top", "dragover__bottom", "dragover");
|
||||
item.style.opacity = "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue