fix: retain textarea focus on send and auto-scroll on content expansion

Remove disabled={isUploading} from the textarea so focus() isn't silently
ignored on a disabled element. Fix ResizeObserver effect deps so the
observer is actually created after the loading spinner transitions to
message content.
This commit is contained in:
Jannis Braun
2026-03-08 21:01:27 +01:00
parent edcd2ff728
commit 0aba5ef8c1
2 changed files with 24 additions and 3 deletions
@@ -329,7 +329,7 @@ export function MessageInput({ channelId, channelName }: MessageInputProps) {
placeholder={`Message ${channelName.startsWith('@') ? channelName : `#${channelName}`}`}
className="flex-1 py-[10px] px-1 bg-transparent text-txt-primary placeholder-txt-tertiary/60 outline-none resize-none text-[15px] leading-[1.375rem] max-h-[50vh] scrollbar-thin"
rows={1}
disabled={isUploading}
/>
{/* Send indicator */}