Update lexical, remove unused code
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
@@ -324,7 +324,7 @@ const AutosuggestPlugin = ({
|
||||
dispatch(chooseEmoji(suggestion));
|
||||
replaceMatch($createEmojiNode(suggestion));
|
||||
} else if (suggestion[0] === '#') {
|
||||
node.setTextContent(`${suggestion} `);
|
||||
(node as TextNode).setTextContent(`${suggestion} `);
|
||||
node.select();
|
||||
} else {
|
||||
const account = selectAccount(getState(), suggestion)!;
|
||||
|
||||
Reference in New Issue
Block a user