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: revert selection change

Wenzhao Hu1c1c5fd2ca64
diff --git a/packages/sheets-ui/src/controllers/editor-bridge.controller.ts b/packages/sheets-ui/src/controllers/editor-bridge.controller.ts
index 82f55013ce..b9c8cc5c2e 100644
--- a/packages/sheets-ui/src/controllers/editor-bridge.controller.ts
+++ b/packages/sheets-ui/src/controllers/editor-bridge.controller.ts
@@ -162,6 +162,10 @@ export class EditorBridgeController extends RxDisposable {
col: startColumn,
};
+ if (isSameEditorLocation(this._lastEditorLocation, location)) {
+ return;
+ }
+
this._lastEditorLocation = {
unitId: location.unitId,
subUnitId: location.subUnitId,