Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

fix(sheets-ui): formula error when cross sub-sheet (#3436)

zhangw97ae31400874
diff --git a/packages/sheets-ui/src/controllers/editor/editing.render-controller.ts b/packages/sheets-ui/src/controllers/editor/editing.render-controller.ts
index 5ad13ec5ee..bd76b959f1 100644
--- a/packages/sheets-ui/src/controllers/editor/editing.render-controller.ts
+++ b/packages/sheets-ui/src/controllers/editor/editing.render-controller.ts
@@ -834,7 +834,6 @@ export class EditingRenderController extends Disposable implements IRenderModule
private async _handleEditorInvisible(param: IEditorBridgeServiceVisibleParam) {
const { keycode } = param;
-
this._setOpenForCurrent(null, null);
this._cursorChange = CursorChange.InitialState;
@@ -892,7 +891,7 @@ export class EditingRenderController extends Disposable implements IRenderModule
worksheet.getCellRaw(row, column) || {},
documentLayoutObject,
this._lexerTreeBuilder,
- (model) => this._resourceLoaderService.saveUnit(model.getUnitId())!,
+ (model) => model.getSnapshot(),
this._localService,
this._functionService
);