chore: add comment

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Marco Beretta 2025-05-02 23:39:08 +02:00 committed by Danny Avila
parent 6fc88f3895
commit 917be0257b
No known key found for this signature in database
GPG key ID: BF31EEB2C5CA0956

View file

@ -132,6 +132,7 @@ const ChatForm = memo(({ index = 0 }: { index?: number }) => {
const onSubmit = methods.handleSubmit((data: { text: string }) => {
submitMessage(data);
// On touch-screen devices, blur the text area to dismiss the on-screen keyboard
if (isTouchScreen) {
textAreaRef.current?.blur();
}