From 4298722da949bff3a5d64540ca039b6a94f4abf9 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sun, 24 Sep 2023 14:46:19 -0500 Subject: [PATCH] EmojiNode: clone with key --- src/features/compose/editor/nodes/emoji-node.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/features/compose/editor/nodes/emoji-node.tsx b/src/features/compose/editor/nodes/emoji-node.tsx index 523b225c1f..7f7d717676 100644 --- a/src/features/compose/editor/nodes/emoji-node.tsx +++ b/src/features/compose/editor/nodes/emoji-node.tsx @@ -29,7 +29,7 @@ class EmojiNode extends DecoratorNode { } static clone(node: EmojiNode): EmojiNode { - return new EmojiNode(node.__name, node.__src); + return new EmojiNode(node.__name, node.__src, node.__key); } constructor(name: string, src: string, key?: NodeKey) { @@ -79,7 +79,7 @@ class EmojiNode extends DecoratorNode { return false; } - isTextEntity(): true { + isTextEntity(): boolean { return true; }