Skip to content

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

:bug: fix https://github.com/siyuan-note/siyuan/issues/5833

Vanessa70e007ec2968
diff --git a/app/src/menus/protyle.ts b/app/src/menus/protyle.ts
index b02aea9be9..07bddb14d1 100644
--- a/app/src/menus/protyle.ts
+++ b/app/src/menus/protyle.ts
@@ -1278,6 +1278,8 @@ export const setFold = (protyle: IProtyle, nodeElement: Element, isOpen?: boolea
const blockElement = hasClosestBlock(range.startContainer);
if (blockElement && blockElement.getBoundingClientRect().width === 0) {
getSelection().removeRange(range);
+ // https://github.com/siyuan-note/siyuan/issues/5833
+ focusBlock(nodeElement, undefined, false);
}
}
}