Browse Source

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

Vanessa 2 years ago
parent
commit
5c97a0eb23
1 changed files with 0 additions and 1 deletions
  1. 0 1
      app/src/menus/protyle.ts

+ 0 - 1
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);
             }