fix: input text not clear when click submit button (#303)
This commit is contained in:
parent
310f08076a
commit
a598622faa
|
|
@ -102,6 +102,7 @@ const MessageInput = forwardRef<MessageInputRef, MessageInputProps>(
|
|||
);
|
||||
onEnter(text, resources);
|
||||
}
|
||||
editorRef.current?.commands.clearContent();
|
||||
},
|
||||
setContent: (content: string) => {
|
||||
if (editorRef.current) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue