diff --git a/src/stories/chat/parts/commentBox.tsx b/src/stories/chat/parts/commentBox.tsx index c32c23b1..6c98922b 100644 --- a/src/stories/chat/parts/commentBox.tsx +++ b/src/stories/chat/parts/commentBox.tsx @@ -59,11 +59,12 @@ export const CommentBox = ({ }: PropsWithChildren) => { const { children, hasInlineMenu, bubbleOptions, author } = props; - const { setEditor, triggerSave } = useChatContext(); + const { editor, setEditor, triggerSave } = useChatContext(); const onKeyDown = (event: ReactKeyboardEvent) => { if ((event.ctrlKey || event.metaKey) && event.key === "Enter") { triggerSave(); + editor?.commands.clearContent(); } };