fix: restore textarea focus after sending a message

This commit is contained in:
Jannis Braun
2026-03-08 20:36:15 +01:00
parent fc06e25731
commit edcd2ff728
@@ -87,9 +87,10 @@ export function MessageInput({ channelId, channelName }: MessageInputProps) {
setContent(''); setContent('');
setFiles([]); setFiles([]);
// Reset textarea height // Reset textarea height and re-focus
if (textareaRef.current) { if (textareaRef.current) {
textareaRef.current.style.height = 'auto'; textareaRef.current.style.height = 'auto';
textareaRef.current.focus();
} }
// Clear typing timeout // Clear typing timeout