fix(chat): release input focus when keyboard closes

This commit is contained in:
2026-06-26 12:01:24 +08:00
parent 58236453ed
commit 09cbd54c79
2 changed files with 40 additions and 16 deletions
@@ -32,6 +32,7 @@ export function ChatInputBar({ disabled = false }: ChatInputBarProps) {
useKeyboardHeight({
targetRef: textareaRef,
active: isFocused,
onKeyboardDismiss: () => setIsFocused(false),
});
const handleInputChange = (value: string) => {