Make MentionNode a DecoratorNode instead of a TextNode

This commit is contained in:
Alex Gleason
2023-10-13 17:19:55 -05:00
parent 1ba1584da8
commit 964ba8c758
4 changed files with 105 additions and 75 deletions

View File

@ -328,7 +328,7 @@ const AutosuggestPlugin = ({
node.select();
} else {
const acct = selectAccount(getState(), suggestion)!.acct;
replaceMatch($createMentionNode(`@${acct}`));
replaceMatch($createMentionNode(acct));
}
dispatch(clearComposeSuggestions(composeId));