clear input after sent (#1000)

This commit is contained in:
an-lee
2024-08-21 06:51:19 +08:00
committed by GitHub
parent f55b1456d7
commit f8e53a4e72

View File

@@ -146,7 +146,7 @@ export const ChatInput = () => {
ref={submitRef}
data-tooltip-id="chat-input-tooltip"
data-tooltip-content={t("send")}
onClick={() => onCreateMessage(content)}
onClick={() => onCreateMessage(content).then(() => setContent(""))}
disabled={submitting || !content}
className=""
variant="ghost"