Vanessa 2024-11-22 00:21:02 +08:00
parent 2d114d4c3b
commit 0049c49158
7 changed files with 45 additions and 21 deletions

View file

@ -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);