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(numfmt): #1132 should keep the style and use real values (#1140)

Gpound.liu13480b8dfb40
diff --git a/packages/sheets-numfmt/src/controllers/numfmt.editor.controller.ts b/packages/sheets-numfmt/src/controllers/numfmt.editor.controller.ts
index 5b2124023c..a5a8d86f97 100644
--- a/packages/sheets-numfmt/src/controllers/numfmt.editor.controller.ts
+++ b/packages/sheets-numfmt/src/controllers/numfmt.editor.controller.ts
@@ -107,9 +107,8 @@ export class NumfmtEditorController extends Disposable {
case 'currency':
case 'grouped':
case 'number': {
- // remove the style atr
const cell = context.worksheet.getCellRaw(row, col);
- return cell ? filterAtr(cell, ['s']) : cell;
+ return cell;
}
case 'date':
case 'time':