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');
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) {