diff --git a/src/components/workspace/Editor/Editor.tsx b/src/components/workspace/Editor/Editor.tsx index 0f3e3f7..7d121b7 100644 --- a/src/components/workspace/Editor/Editor.tsx +++ b/src/components/workspace/Editor/Editor.tsx @@ -131,6 +131,7 @@ const Editor: FC = ({ file, projectId, className = '' }) => { editorRef.current.setValue(content); } setInitialFile({ id: file.id, content }); + editorRef.current?.focus(); }; const markFileDirty = () => {