mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
Update reply-modal.tsx
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user