Skip to content

Commit

Permalink
fix: address regression from Lexical upgrade
Browse files Browse the repository at this point in the history
* fix #585

* return call structuredClone
  • Loading branch information
Tetragius authored Sep 18, 2024
1 parent ba176b1 commit 00b70fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/jsx/LexicalJsxNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class LexicalJsxNode extends DecoratorNode<JSX.Element> {
}

static clone(node: LexicalJsxNode): LexicalJsxNode {
return new LexicalJsxNode(structuredClone(node.__mdastNode))
return new LexicalJsxNode(structuredClone(node.__mdastNode), node.__key)
}

static importJSON(serializedNode: SerializedLexicalJsxNode): LexicalJsxNode {
Expand Down

0 comments on commit 00b70fc

Please sign in to comment.