mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
2d114d4c3b
commit
0049c49158
7 changed files with 45 additions and 21 deletions
|
|
@ -115,7 +115,6 @@ const focusStack = async (app: App, stack: IBackStack) => {
|
|||
if (stack.protyle.title.editElement.getBoundingClientRect().height === 0) {
|
||||
// 切换 tab
|
||||
stack.protyle.model.parent.parent.switchTab(stack.protyle.model.parent.headElement);
|
||||
// 需要更新 range,否则 resize 中 `保持光标位置不变` 会导致光标跳动
|
||||
stack.protyle.toolbar.range = undefined;
|
||||
}
|
||||
focusByOffset(stack.protyle.title.editElement, stack.position.start, stack.position.end);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue