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): flash render cache when close sidebar (#658)

Gpound.liud7d777fc0b95
diff --git a/packages/sheets-numfmt/src/controllers/numfmt.controller.ts b/packages/sheets-numfmt/src/controllers/numfmt.controller.ts
index 519ffb9ec1..fb7b7f98d6 100644
--- a/packages/sheets-numfmt/src/controllers/numfmt.controller.ts
+++ b/packages/sheets-numfmt/src/controllers/numfmt.controller.ts
@@ -150,6 +150,8 @@ export class NumfmtController extends Disposable implements INumfmtController {
...(props as any), // need passthrough to react props.
},
onClose: () => {
+ this._sheetSkeletonManagerService.reCalculate();
+ this._renderManagerService.getRenderById(workbook.getUnitId())?.mainComponent?.makeDirty();
commandService.executeCommand(CloseNumfmtPanelOperator.id);
},
});