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(formula-bar): an additional selection is inserted when you click … (#3964)

Gpound.liu8cda70485f61
diff --git a/packages/sheets-ui/src/controllers/editor/formula-editor.controller.ts b/packages/sheets-ui/src/controllers/editor/formula-editor.controller.ts
index f7b7364c21..e97c9bc477 100644
--- a/packages/sheets-ui/src/controllers/editor/formula-editor.controller.ts
+++ b/packages/sheets-ui/src/controllers/editor/formula-editor.controller.ts
@@ -196,7 +196,7 @@ export class FormulaEditorController extends RxDisposable {
if (visibleState.visible === false) {
this._editorBridgeService.changeVisible({
visible: true,
- eventType: DeviceInputEventType.Dblclick,
+ eventType: DeviceInputEventType.PointerDown,
unitId,
});
this._undoRedoService.clearUndoRedo(DOCS_FORMULA_BAR_EDITOR_UNIT_ID_KEY);