Skip to content

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

:recycle: https://github.com/siyuan-note/siyuan/issues/5833

Vanessa5c97a0eb23ab
diff --git a/app/src/menus/protyle.ts b/app/src/menus/protyle.ts
index 07bddb14d1..a5a4b10103 100644
--- a/app/src/menus/protyle.ts
+++ b/app/src/menus/protyle.ts
@@ -1277,7 +1277,6 @@ export const setFold = (protyle: IProtyle, nodeElement: Element, isOpen?: boolea
const range = getSelection().getRangeAt(0);
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);
}