From f8ce1d3915abb8058905637f0a6210b0d57d97e5 Mon Sep 17 00:00:00 2001 From: heimoshuiyu Date: Thu, 13 Jul 2023 18:03:21 +0800 Subject: [PATCH] setInputMsg("") after click assistant or user --- src/chatbox.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/chatbox.tsx b/src/chatbox.tsx index 08e8ce8..391a4d0 100644 --- a/src/chatbox.tsx +++ b/src/chatbox.tsx @@ -487,6 +487,7 @@ export default function ChatBOX(props: { example: false, }); update_total_tokens(); + setInputMsg(""); setChatStore({ ...chatStore }); }} > @@ -506,6 +507,7 @@ export default function ChatBOX(props: { example: false, }); update_total_tokens(); + setInputMsg(""); setChatStore({ ...chatStore }); }} >