don't autofocus top-level reply

This commit is contained in:
keyan 2023-02-24 10:08:15 -06:00
parent 0c2b9a31b2
commit 183201a1b8
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ export default function Reply ({ item, onSuccess, replyOpen, children }) {
const replyInput = useRef(null)
useEffect(() => {
if (replyInput.current && reply) replyInput.current.focus()
if (replyInput.current && reply && !replyOpen) replyInput.current.focus()
}, [reply])
return (