Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing Label + Description Fields in nested Lexical RichText Field #9905

Closed
aschnebelext opened this issue Dec 11, 2024 · 3 comments · Fixed by #10276
Closed

Missing Label + Description Fields in nested Lexical RichText Field #9905

aschnebelext opened this issue Dec 11, 2024 · 3 comments · Fixed by #10276
Assignees
Labels
plugin: richtext-lexical @payloadcms/richtext-lexical

Comments

@aschnebelext
Copy link

Describe the Bug

The Label and/or Description is not rendered when using the RichText Lexical Editor in a Block Field.

Image

Link to the code that reproduces this issue

https://github.com/aschnebelext/payload-nested-richtext

Reproduction Steps

Fork my reproduction Repository, create a user, create a new lesson, create a new "Quiz" Block and notice, that the Label and Descriptions are missing.

Which area(s) are affected? (Select all that apply)

area: core

Environment Info

Binaries:
  Node: 20.18.1
  npm: 10.8.2
  Yarn: 1.22.22
  pnpm: 9.15.0
Relevant Packages:
  payload: 3.6.0
  next: 15.0.4
  @payloadcms/db-mongodb: 3.6.0
  @payloadcms/email-nodemailer: 3.6.0
  @payloadcms/graphql: 3.6.0
  @payloadcms/next/utilities: 3.6.0
  @payloadcms/payload-cloud: 3.6.0
  @payloadcms/richtext-lexical: 3.6.0
  @payloadcms/translations: 3.6.0
  @payloadcms/ui/shared: 3.6.0
  react: 19.0.0
  react-dom: 19.0.0
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.1.0: Thu Nov 14 18:15:21 PST 2024; root:xnu-11215.41.3~13/RELEASE_ARM64_T6041
  Available memory (MB): 65536
  Available CPU cores: 16
@aschnebelext aschnebelext added status: needs-triage Possible bug which hasn't been reproduced yet validate-reproduction labels Dec 11, 2024
@AlessioGr AlessioGr added the plugin: richtext-lexical @payloadcms/richtext-lexical label Dec 11, 2024
@github-actions github-actions bot removed the status: needs-triage Possible bug which hasn't been reproduced yet label Dec 11, 2024
@GermanJablo
Copy link
Contributor

Inside the Lexical editor, the way to put a Label to the blocks or to the fields of the blocks is like this:

admin: {
  components: {
    Label: '/path/to/your/LabelComponent.js',
  },
},

You can read the documentation here.

Note that the blocks do not include a description property when they are rendered inside the Lexical editor.

Copy link
Contributor

This issue has been automatically locked.
Please open a new issue if this issue persists with any additional detail.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 19, 2024
@AlessioGr AlessioGr reopened this Dec 31, 2024
@AlessioGr AlessioGr added the status: verified If an issue has been reproduced label Dec 31, 2024
@github-actions github-actions bot added the status: needs-triage Possible bug which hasn't been reproduced yet label Dec 31, 2024
AlessioGr added a commit that referenced this issue Dec 31, 2024
…ncorrectly generated client field schema map (#10276)

Fixes #9905,
#9660

Single lexical fields were represented file in the schema map (`path =>
field`). In the client schema map however, they were incorrectly
represented like this: `path => { fields: [field] } `
@github-actions github-actions bot removed status: needs-triage Possible bug which hasn't been reproduced yet status: verified If an issue has been reproduced labels Dec 31, 2024
Copy link
Contributor

github-actions bot commented Jan 2, 2025

🚀 This is included in version v3.13.0

@github-actions github-actions bot unlocked this conversation Jan 2, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Jan 2, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
plugin: richtext-lexical @payloadcms/richtext-lexical
Projects
None yet
3 participants