diff --git a/src/features/compose/editor/plugins/autosuggest-plugin.tsx b/src/features/compose/editor/plugins/autosuggest-plugin.tsx index 74c638604..523954c28 100644 --- a/src/features/compose/editor/plugins/autosuggest-plugin.tsx +++ b/src/features/compose/editor/plugins/autosuggest-plugin.tsx @@ -30,7 +30,7 @@ import React, { } from 'react'; import ReactDOM from 'react-dom'; -import { fetchComposeSuggestions } from 'soapbox/actions/compose'; +import { clearComposeSuggestions, fetchComposeSuggestions } from 'soapbox/actions/compose'; import { useEmoji } from 'soapbox/actions/emojis'; import AutosuggestEmoji from 'soapbox/components/autosuggest-emoji'; import { isNativeEmoji } from 'soapbox/features/emoji'; @@ -335,6 +335,8 @@ const AutosuggestPlugin = ({ node.setTextContent(`@${content} `); node.select(); } + + dispatch(clearComposeSuggestions(composeId)); }); }); };