diff --git a/client/components/codeEditor/codeEditor.jsx b/client/components/codeEditor/codeEditor.jsx index 3eed6ab9b..4fa19b382 100644 --- a/client/components/codeEditor/codeEditor.jsx +++ b/client/components/codeEditor/codeEditor.jsx @@ -300,6 +300,7 @@ const CodeEditor = forwardRef( view.setState(nextState); prevTabRef.current = tab; } + view.focus(); }, [tab]); useEffect(()=>{