Update reply-modal.tsx

This commit is contained in:
Tom (plebeius.eth)
2025-03-07 19:16:40 +01:00
parent 233324585f
commit d42edcf7ff
+2 -2
View File
@@ -203,7 +203,7 @@ const ReplyModal = ({ closeModal, showReplyModal, parentCid, postCid, scrollY, s
: t('subplebbit_offline_info'); : t('subplebbit_offline_info');
useEffect(() => { useEffect(() => {
if (showReplyModal) { if (showReplyModal && !isMobile) {
setTimeout(() => { setTimeout(() => {
if (textRef.current) { if (textRef.current) {
textRef.current.focus(); textRef.current.focus();
@@ -221,7 +221,7 @@ const ReplyModal = ({ closeModal, showReplyModal, parentCid, postCid, scrollY, s
document.removeEventListener('keydown', handleEscape); document.removeEventListener('keydown', handleEscape);
}; };
} }
}, [showReplyModal, closeModal]); }, [showReplyModal, closeModal, isMobile]);
useEffect(() => { useEffect(() => {
if (textRef.current) { if (textRef.current) {