Vanessa 2025-10-10 10:36:03 +08:00
parent 39aaefa24c
commit ef4deeae58

View file

@ -1396,7 +1396,7 @@ const processFold = (operation: IOperation, protyle: IProtyle) => {
highlightRender(protyle.wysiwyg.element);
avRender(protyle.wysiwyg.element, protyle);
blockRender(protyle, protyle.wysiwyg.element);
if (operation.context.focusId) {
if (operation.context?.focusId) {
const focusElement = protyle.wysiwyg.element.querySelector(`[data-node-id="${operation.context.focusId}"]`);
focusBlock(focusElement);
scrollCenter(protyle, focusElement, false);