diff --git a/client/components/codeEditor/codeEditor.jsx b/client/components/codeEditor/codeEditor.jsx index 1dde9eaf5..c326a807e 100644 --- a/client/components/codeEditor/codeEditor.jsx +++ b/client/components/codeEditor/codeEditor.jsx @@ -253,7 +253,7 @@ const CodeEditor = forwardRef( view.dispatch({ effects : highlightCompartment.reconfigure([customHighlightPlugin, highlightExtension]), }); - }, [renderer]); + }, [renderer, tab]); useImperativeHandle(ref, ()=>({ getValue : ()=>viewRef.current.state.doc.toString(),