mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-17 01:21:14 +08:00
This commit is contained in:
parent
ed1e4459e2
commit
97b0faa0b9
@ -231,8 +231,9 @@ export class Wnd {
|
|||||||
item.remove();
|
item.remove();
|
||||||
});
|
});
|
||||||
}, 1000);
|
}, 1000);
|
||||||
const it = this as HTMLElement;
|
document.querySelectorAll(".layout-tab-bars--drag").forEach(item => {
|
||||||
it.classList.remove("layout-tab-bars--drag");
|
item.classList.remove("layout-tab-bars--drag");
|
||||||
|
})
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.headersElement.parentElement.addEventListener("dragenter", (event) => {
|
this.headersElement.parentElement.addEventListener("dragenter", (event) => {
|
||||||
@ -257,7 +258,9 @@ export class Wnd {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
window.siyuan.dragElement = undefined;
|
window.siyuan.dragElement = undefined;
|
||||||
it.classList.remove("layout-tab-bars--drag");
|
document.querySelectorAll(".layout-tab-bars--drag").forEach(item => {
|
||||||
|
item.classList.remove("layout-tab-bars--drag");
|
||||||
|
})
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const tabData = JSON.parse(event.dataTransfer.getData(Constants.SIYUAN_DROP_TAB));
|
const tabData = JSON.parse(event.dataTransfer.getData(Constants.SIYUAN_DROP_TAB));
|
||||||
@ -275,7 +278,9 @@ export class Wnd {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
/// #endif
|
/// #endif
|
||||||
it.classList.remove("layout-tab-bars--drag");
|
document.querySelectorAll(".layout-tab-bars--drag").forEach(item => {
|
||||||
|
item.classList.remove("layout-tab-bars--drag");
|
||||||
|
})
|
||||||
if (!oldTab) {
|
if (!oldTab) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user