From 0977ca1d47dbd8c9c78fd189490478dec95b38a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=9F=E8=B4=A4?= Date: Thu, 26 Oct 2023 23:31:25 +0800 Subject: [PATCH] fix: fix send auto clear no work error --- src/ProChat/components/InputArea/AutoCompleteTextArea.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ProChat/components/InputArea/AutoCompleteTextArea.tsx b/src/ProChat/components/InputArea/AutoCompleteTextArea.tsx index 2c869565..142cf18d 100644 --- a/src/ProChat/components/InputArea/AutoCompleteTextArea.tsx +++ b/src/ProChat/components/InputArea/AutoCompleteTextArea.tsx @@ -16,6 +16,7 @@ export const AutoCompleteTextArea: React.FC = (props) => { style={{ height: 'max-content', }} + value={props.value} onSelect={(value) => { props.onChange?.({ target: { value } } as any); setOptions([]);