Skip to content

[lexical-react] Fix: Use explicit key attr in NodeContextMenuPlugin#7803

Merged
ivailop7 merged 1 commit intofacebook:mainfrom
etrepum:NodeContextMenu-explicit-key-attr
Sep 9, 2025
Merged

[lexical-react] Fix: Use explicit key attr in NodeContextMenuPlugin#7803
ivailop7 merged 1 commit intofacebook:mainfrom
etrepum:NodeContextMenu-explicit-key-attr

Conversation

@etrepum
Copy link
Copy Markdown
Collaborator

@etrepum etrepum commented Sep 8, 2025

Description

Explicitly specify the key attribute in the implementation of NodeContextMenuPlugin instead of relying on a spread. This seems to cause a problem with the way next.js handles jsx. I was expecting it to show up when using React 19 but it didn't seem to complain in the draft #7802 (before I added the commit for this fix).

Closes #7801

Test plan

I think this requires next.js to reproduce so it's hard in our current test environment

@vercel
Copy link
Copy Markdown

vercel bot commented Sep 8, 2025

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

Project Deployment Preview Comments Updated (UTC)
lexical Ready Ready Preview Comment Sep 8, 2025 9:49pm
lexical-playground Ready Ready Preview Comment Sep 8, 2025 9:49pm

@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 Sep 8, 2025
@etrepum etrepum added the extended-tests Run extended e2e tests on a PR label Sep 8, 2025
@etrepum etrepum added extended-tests Run extended e2e tests on a PR and removed extended-tests Run extended e2e tests on a PR labels Sep 8, 2025
@ivailop7 ivailop7 added this pull request to the merge queue Sep 9, 2025
Merged via the queue into facebook:main with commit 97edffc Sep 9, 2025
100 of 130 checks passed
This was referenced Sep 25, 2025
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.

Bug: NodeContextMenuPlugin key Prop Issue

2 participants