diff --git a/packages/editor/core/src/ui/mentions/MentionList.tsx b/packages/editor/core/src/ui/mentions/MentionList.tsx index e8bee47d1c..48aebaa119 100644 --- a/packages/editor/core/src/ui/mentions/MentionList.tsx +++ b/packages/editor/core/src/ui/mentions/MentionList.tsx @@ -27,8 +27,6 @@ const MentionList = forwardRef((props: MentionListProps, ref) => { const selectItem = (index: number) => { const item = props.items[index]; - console.log(props.command); - if (item) { props.command({ id: item.id, @@ -71,7 +69,7 @@ const MentionList = forwardRef((props: MentionListProps, ref) => { if (event.key === "Enter") { enterHandler(); - return false; + return true; } return false; @@ -79,7 +77,7 @@ const MentionList = forwardRef((props: MentionListProps, ref) => { })); return props.items && props.items.length !== 0 ? ( -