Skip to content

[lexical-rich-text] Bug Fix: Forward editorConfig to QuoteNode.updateDOM - #8882

Merged
etrepum merged 1 commit into
meta:mainfrom
werterhalimi:fix-forward-editorConfig-quoteNode-updateDOM
Jul 27, 2026
Merged

etrepum merged 1 commit into
meta:mainfrom
werterhalimi:fix-forward-editorConfig-quoteNode-updateDOM

Conversation

@werterhalimi

Copy link
Copy Markdown

Description

LexicalEditor already forwards editor._config to updateDOM for all nodes (see LexicalEditor.ts:916), but QuoteNode was not accepting the config parameter. This change aligns QuoteNode.updateDOM with every other node in the codebase (e.g. HeadingNode, ParagraphNode, TextNode) by adding the missing config: EditorConfig parameter.

Also updates the unit test and the Flow type declaration to match.

There is no runtime behavior change — this only makes the contract consistent so that future logic inside QuoteNode.updateDOM can safely reference the editor config (theme, namespace, etc.) just like sibling nodes already do.

Test plan

Before

  • QuoteNode.updateDOM(prevNode, dom) accepted only two arguments.
  • The reconciler passed editor._config anyway, but it was ignored by the type signature.

After

  • QuoteNode.updateDOM(prevNode, dom, config) matches the contract expected by the reconciler.
  • Unit test LexicalQuoteNode.test.ts updated to pass editorConfig as the third argument.
  • Flow type declaration updated accordingly.
  • All existing tests in packages/lexical-rich-text pass.

## Description

LexicalEditor already forwards editor._config to updateDOM for all nodes, but QuoteNode was not accepting the config parameter. This change aligns QuoteNode.updateDOM() with all other nodes in the codebase (e.g. HeadingNode, ParagraphNode) by adding the missing config: EditorConfig parameter.

## Test plan

### Before

QuoteNode.updateDOM() accepted only (prevNode, dom) and tests called it without passing config.

### After

QuoteNode.updateDOM() now accepts (prevNode, dom, config) and the test passes editorConfig as the third argument.
@vercel

vercel Bot commented Jul 27, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
lexical Ready Ready Preview Jul 27, 2026 9:34am
lexical-playground Ready Ready Preview Jul 27, 2026 9:34am

Request Review

@meta-cla

meta-cla Bot commented Jul 27, 2026

Copy link
Copy Markdown

Hi @werterhalimi!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

@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 Jul 27, 2026
@meta-cla

meta-cla Bot commented Jul 27, 2026

Copy link
Copy Markdown

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@etrepum etrepum added the extended-tests Run extended e2e tests on a PR label Jul 27, 2026
@etrepum
etrepum added this pull request to the merge queue Jul 27, 2026
Merged via the queue into meta:main with commit c7630f9 Jul 27, 2026
44 checks passed
@etrepum etrepum mentioned this pull request Jul 29, 2026

This branch was successfully deployed

2 active deployments
Preview – lexical — 6dc2d9ff Deployed Jul 27, 2026 by vercel[bot]
Preview – lexical-playground — 6dc2d9ff Deployed Jul 27, 2026 by vercel[bot]
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