Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/10828

Vanessa8f3bc2f22c62
diff --git a/app/src/layout/dock/Outline.ts b/app/src/layout/dock/Outline.ts
index 76dd8c0ad9..6b146a9414 100644
--- a/app/src/layout/dock/Outline.ts
+++ b/app/src/layout/dock/Outline.ts
@@ -272,11 +272,10 @@ export class Outline extends Model {
documentSelf.onselect = null;
ghostElement.remove();
item.style.opacity = "";
-
if (!selectItem) {
selectItem = this.element.querySelector(".dragover__top, .dragover__bottom, .dragover");
}
- if (selectItem) {
+ if (selectItem && selectItem.className.indexOf("dragover") > -1) {
getAllModels().editor.find(editItem => {
if (editItem.editor.protyle.block.rootID === this.blockId) {
let previousID;