mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-19 04:14:46 +08:00
fix: input text not clear when click submit button (#303)
This commit is contained in:
@@ -102,6 +102,7 @@ const MessageInput = forwardRef<MessageInputRef, MessageInputProps>(
|
|||||||
);
|
);
|
||||||
onEnter(text, resources);
|
onEnter(text, resources);
|
||||||
}
|
}
|
||||||
|
editorRef.current?.commands.clearContent();
|
||||||
},
|
},
|
||||||
setContent: (content: string) => {
|
setContent: (content: string) => {
|
||||||
if (editorRef.current) {
|
if (editorRef.current) {
|
||||||
|
|||||||
Reference in New Issue
Block a user