From 137186e760a8af6f33b7a82997e91d62fee460f3 Mon Sep 17 00:00:00 2001 From: heimoshuiyu Date: Wed, 8 Jan 2025 01:51:09 +0800 Subject: [PATCH] refactor: Input, Textarea maintain their own value, fix #8 --- src/components/Settings.tsx | 10 +++++----- src/components/ui/input.tsx | 9 ++++++--- src/components/ui/textarea.tsx | 5 ++++- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/src/components/Settings.tsx b/src/components/Settings.tsx index eb20128..c0ea76d 100644 --- a/src/components/Settings.tsx +++ b/src/components/Settings.tsx @@ -141,7 +141,7 @@ const SelectModel = (props: { help: string }) => { {useCustomModel ? ( ) => { + onBlur={(e: React.ChangeEvent) => { chatStore.model = e.target.value; setChatStore({ ...chatStore }); }} @@ -205,7 +205,7 @@ const LongInput = (props: {