EmojiNode: clone with key

This commit is contained in:
Alex Gleason 2023-09-24 14:46:19 -05:00
parent f0f2f6fa41
commit 4298722da9
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -29,7 +29,7 @@ class EmojiNode extends DecoratorNode<JSX.Element> {
}
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<JSX.Element> {
return false;
}
isTextEntity(): true {
isTextEntity(): boolean {
return true;
}