Only autofocus question input if no question text and not focused.

This commit is contained in:
James Grugett 2022-03-05 23:58:54 -08:00
parent 4ee458d3f5
commit d8681b043c

View File

@ -109,7 +109,7 @@ export default function FeedCreate(props: {
question || focused ? 'ring-2 ring-indigo-300' : '',
className
)}
onClick={() => !focused && inputRef.current?.focus()}
onClick={() => !focused && !question && inputRef.current?.focus()}
ref={(elem) => (panelRef.current = elem)}
>
<div className="relative flex items-start space-x-3">