fix: input text not clear when click submit button (#303)

This commit is contained in:
LeoJiaXin
2025-06-11 11:11:48 +08:00
committed by GitHub
parent 447e427fd3
commit 397ac57235

View File

@@ -102,6 +102,7 @@ const MessageInput = forwardRef<MessageInputRef, MessageInputProps>(
);
onEnter(text, resources);
}
editorRef.current?.commands.clearContent();
},
setContent: (content: string) => {
if (editorRef.current) {