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(base-sheets): cell input handle

Dushusir19ad0a15aa37
diff --git a/packages/base-sheets/src/Controller/FormulaBarController.ts b/packages/base-sheets/src/Controller/FormulaBarController.ts
index 28786b09c1..bab0d62b1e 100644
--- a/packages/base-sheets/src/Controller/FormulaBarController.ts
+++ b/packages/base-sheets/src/Controller/FormulaBarController.ts
@@ -66,7 +66,7 @@ export class FormulaBarController {
const cellData = this._plugin.getWorkbook().getActiveSheet().getRange(currentRangeData).getObjectValue({ isIncludeStyle: true });
if (cellData) {
- let cellValue = cellData.m || `${cellData.v}` || '';
+ let cellValue = String(cellData.m || cellData.v || '');
// If the cell has a formula, it needs to be intercepted
const cell = this._cellInputExtensionManager.handle({