diff --git a/src/shared/components/MonacoEditorESM/Editor.js b/src/shared/components/MonacoEditorESM/Editor.js index 445a23174c..17c578d5fd 100644 --- a/src/shared/components/MonacoEditorESM/Editor.js +++ b/src/shared/components/MonacoEditorESM/Editor.js @@ -79,7 +79,7 @@ export function Editor({ editorInstance.setValue(value); prevValueRef.current = value; } - }, [value]); + }, [value, editorInstance, readOnly]); useUpdateValueOnParentChange({ updateValueOnParentChange,