don't autofocus top-level reply
This commit is contained in:
parent
0c2b9a31b2
commit
183201a1b8
@ -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 (
|
||||
|
Loading…
x
Reference in New Issue
Block a user