{threadErrors.content}
} diff --git a/src/components/PostEditor/PostTextarea/index.tsx b/src/components/PostEditor/PostTextarea/index.tsx index 59dd0b66..64086152 100644 --- a/src/components/PostEditor/PostTextarea/index.tsx +++ b/src/components/PostEditor/PostTextarea/index.tsx @@ -226,18 +226,6 @@ const PostTextarea = forwardRef< }) }, [editor, editorSurfaceClass]) - useEffect(() => { - if (!editor || !isSmallScreen) return - const scrollEditorIntoView = () => { - requestAnimationFrame(() => { - editor.view.dom.scrollIntoView({ block: 'nearest', inline: 'nearest' }) - }) - } - editor.on('focus', scrollEditorIntoView) - return () => { - editor.off('focus', scrollEditorIntoView) - } - }, [editor, isSmallScreen]) useImperativeHandle(ref, () => ({ appendText: (text: string, addNewline = false) => { @@ -327,8 +315,14 @@ const PostTextarea = forwardRef< ) return ( -