Vanessa 2025-11-27 11:11:51 +08:00
parent d33ab92c7f
commit d81d517997

View file

@ -464,7 +464,7 @@ const focusElementById = (protyle: IProtyle, action: string[], scrollAttr?: IScr
} }
}); });
} }
if (!focusElement && protyle.block.id === protyle.block.rootID) { if (!focusElement && protyle.block.id === protyle.block.rootID && protyle.title?.editElement) {
focusElement = protyle.title.editElement; focusElement = protyle.title.editElement;
} }
if (protyle.block.mode === 4) { if (protyle.block.mode === 4) {