Disable always autofocus

This commit is contained in:
Ian Philips 2022-06-09 07:36:36 -06:00
parent 65a879d5ab
commit 65bc0f0f86

View File

@ -441,7 +441,7 @@ export function CommentInput(props: {
? 'Write a reply... '
: 'Write a comment...'
}
autoFocus={true}
autoFocus={focused}
onFocus={() => setFocused(true)}
onBlur={() =>
shouldCollapseAfterClickOutside && setFocused(false)