Only autofocus question input if no question text and not focused.
This commit is contained in:
parent
4ee458d3f5
commit
d8681b043c
|
@ -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">
|
||||
|
|
Loading…
Reference in New Issue
Block a user