From d42edcf7ffd6a78be5f13fe61677d8c598b5b650 Mon Sep 17 00:00:00 2001 From: "Tom (plebeius.eth)" Date: Fri, 7 Mar 2025 19:16:40 +0100 Subject: [PATCH] Update reply-modal.tsx --- src/components/reply-modal/reply-modal.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {