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');
|
: 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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user