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(editor): value change (#1514)

Univer4a21331dff25
diff --git a/packages/ui/src/components/editor/TextEditor.tsx b/packages/ui/src/components/editor/TextEditor.tsx
index 0b8180669d..55c6fca080 100644
--- a/packages/ui/src/components/editor/TextEditor.tsx
+++ b/packages/ui/src/components/editor/TextEditor.tsx
@@ -191,7 +191,7 @@ export function TextEditor(props: ITextEditorProps & Omit<MyComponentProps, 'onC
}, 30);
const valueChangeSubscription = editorService.valueChange$.subscribe((editor) => {
- if (!editor.onlyInputFormula() && !editor.onlyInputRange()) {
+ if (editor.isSheetEditor()) {
return;
}