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: toolbar bug

jerry0c1170f7119e
diff --git a/packages/base-sheets/src/Controller/ToolBarController.ts b/packages/base-sheets/src/Controller/ToolBarController.ts
index 7ee74e458e..157ef8727f 100644
--- a/packages/base-sheets/src/Controller/ToolBarController.ts
+++ b/packages/base-sheets/src/Controller/ToolBarController.ts
@@ -91,7 +91,7 @@ export class ToolBarController {
}
if (fontSizeItem) {
fontSizeItem.children?.forEach((item) => {
- item.value = fontSize;
+ item.selected = fontSize === item.value;
});
}
if (fontBoldItem) {