diff --git a/src/components/reply-modal/reply-modal.tsx b/src/components/reply-modal/reply-modal.tsx index 5f29ab27..bb9ef3a7 100644 --- a/src/components/reply-modal/reply-modal.tsx +++ b/src/components/reply-modal/reply-modal.tsx @@ -203,7 +203,7 @@ const ReplyModal = ({ closeModal, showReplyModal, parentCid, postCid, scrollY, s : t('subplebbit_offline_info'); useEffect(() => { - if (showReplyModal) { + if (showReplyModal && !isMobile) { setTimeout(() => { if (textRef.current) { textRef.current.focus(); @@ -221,7 +221,7 @@ const ReplyModal = ({ closeModal, showReplyModal, parentCid, postCid, scrollY, s document.removeEventListener('keydown', handleEscape); }; } - }, [showReplyModal, closeModal]); + }, [showReplyModal, closeModal, isMobile]); useEffect(() => { if (textRef.current) {