mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 10:00:13 +01:00
This commit is contained in:
parent
28ebc54131
commit
70e007ec29
1 changed files with 2 additions and 0 deletions
|
|
@ -1278,6 +1278,8 @@ export const setFold = (protyle: IProtyle, nodeElement: Element, isOpen?: boolea
|
||||||
const blockElement = hasClosestBlock(range.startContainer);
|
const blockElement = hasClosestBlock(range.startContainer);
|
||||||
if (blockElement && blockElement.getBoundingClientRect().width === 0) {
|
if (blockElement && blockElement.getBoundingClientRect().width === 0) {
|
||||||
getSelection().removeRange(range);
|
getSelection().removeRange(range);
|
||||||
|
// https://github.com/siyuan-note/siyuan/issues/5833
|
||||||
|
focusBlock(nodeElement, undefined, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue