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: fixed the auto-fill handle button cannot appear (#5478)

wpxp123456eac4483d555d
diff --git a/packages/sheets-formula/src/controllers/array-formula-cell-interceptor.controller.ts b/packages/sheets-formula/src/controllers/array-formula-cell-interceptor.controller.ts
index 4602ea1bc7..2504bbc792 100644
--- a/packages/sheets-formula/src/controllers/array-formula-cell-interceptor.controller.ts
+++ b/packages/sheets-formula/src/controllers/array-formula-cell-interceptor.controller.ts
@@ -83,7 +83,10 @@ export class ArrayFormulaCellInterceptorController extends Disposable {
unitId,
subUnitId,
cellValue: cellValue.getMatrix(),
- }, { onlyLocal: true });
+ }, {
+ onlyLocal: true,
+ fromFormula: true,
+ });
});
});
@@ -95,7 +98,10 @@ export class ArrayFormulaCellInterceptorController extends Disposable {
unitId,
subUnitId,
cellValue: rowData,
- }, { onlyLocal: true });
+ }, {
+ onlyLocal: true,
+ fromFormula: true,
+ });
});
});
}
diff --git a/packages/sheets/src/controllers/calculate-result-apply.controller.ts b/packages/sheets/src/controllers/calculate-result-apply.controller.ts
index 5834796a7e..1cb807685a 100644
--- a/packages/sheets/src/controllers/calculate-result-apply.controller.ts
+++ b/packages/sheets/src/controllers/calculate-result-apply.controller.ts
@@ -83,6 +83,7 @@ export class CalculateResultApplyController extends Disposable {
const result = redoMutationsInfo.every((m) =>
this._commandService.executeCommand(m.id, m.params, {
onlyLocal: true,
+ fromFormula: true,
})
);
return result;