Skip to content

[lexical-code][lexical-mark][lexical-react][lexical-table][lexical-rich-text][lexical-link] Bug Fix: Add and fix afterCloneFrom implementations#8229

Merged
etrepum merged 3 commits intofacebook:mainfrom
etrepum:afterCloneFrom
Mar 17, 2026

Conversation

@etrepum
Copy link
Collaborator

@etrepum etrepum commented Mar 17, 2026

Description

Having an implementation of afterCloneFrom in any node subclass that adds properties makes it easier to subclass. Audited published nodes that have properties to ensure they had a afterCloneFrom implementation and then did a pass through all of them to make sure that implementation was correct (with Claude's assistance).

Affected classes:

  • CodeHighlightNode
  • MarkNode
  • DecoratorBlockNode
  • TableRowNode
  • TableCellNode (existing implementation missing several properties)
  • LinkNode (typo in existing implementation)

Test plan

All existing tests pass

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 17, 2026
@vercel
Copy link

vercel bot commented Mar 17, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
lexical Ready Ready Preview, Comment Mar 17, 2026 3:13pm
lexical-playground Ready Ready Preview, Comment Mar 17, 2026 3:13pm

Request Review

@etrepum etrepum added extended-tests Run extended e2e tests on a PR and removed CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. labels Mar 17, 2026
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 17, 2026
@etrepum etrepum changed the title [lexical-code][lexical-mark][lexical-react][lexical-table][lexical-rich-text] Chore: Add missing afterCloneFrom implementations [lexical-code][lexical-mark][lexical-react][lexical-table][lexical-rich-text][lexical-link] Chore: Add and fix afterCloneFrom implementations Mar 17, 2026
@etrepum etrepum changed the title [lexical-code][lexical-mark][lexical-react][lexical-table][lexical-rich-text][lexical-link] Chore: Add and fix afterCloneFrom implementations [lexical-code][lexical-mark][lexical-react][lexical-table][lexical-rich-text][lexical-link] Bug Fix: Add and fix afterCloneFrom implementations Mar 17, 2026
@etrepum etrepum marked this pull request as ready for review March 17, 2026 15:13
@etrepum etrepum added this pull request to the merge queue Mar 17, 2026
Merged via the queue into facebook:main with commit 2c932a5 Mar 17, 2026
37 checks passed
@etrepum etrepum mentioned this pull request Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. extended-tests Run extended e2e tests on a PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants