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

BlocksFeature : id field with default value not respected #10295

Open
himanshu-ntml opened this issue Jan 1, 2025 · 0 comments
Open

BlocksFeature : id field with default value not respected #10295

himanshu-ntml opened this issue Jan 1, 2025 · 0 comments
Labels
plugin: richtext-lexical @payloadcms/richtext-lexical status: needs-triage Possible bug which hasn't been reproduced yet

Comments

@himanshu-ntml
Copy link

himanshu-ntml commented Jan 1, 2025

Describe the Bug

When implementing the BlocksNode component in Lexical Blocks, I intend to use UUIDs for block IDs. However, despite attempting to integrate UUIDs, the system continues to generate and use hex strings as IDs.

Expected behavior: The system should generate and assign a UUID for each new block created within the BlocksNode component.

Current behavior: The blocks still receive hex string IDs, contrary to the expected UUID format. This occurs even though I have attempted to override the default ID generation method.

Link to the code that reproduces this issue

https://github.com/himanshu-ntml/extend-table-issue

Reproduction Steps

  1. git clone
  2. npm i
  3. set db connection
  4. npm run dev

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

plugin: richtext-lexical

Environment Info

Binaries:
  Node: 22.11.0
  npm: 11.0.0
  Yarn: 1.22.22
  pnpm: 9.12.3
Relevant Packages:
  payload: 3.9.0
  next: 15.1.0
  @payloadcms/db-postgres: 3.9.0
  @payloadcms/email-nodemailer: 3.9.0
  @payloadcms/graphql: 3.9.0
  @payloadcms/next/utilities: 3.9.0
  @payloadcms/payload-cloud: 3.9.0
  @payloadcms/richtext-lexical: 3.9.0
  @payloadcms/translations: 3.9.0
  @payloadcms/ui/shared: 3.9.0
  react: 19.0.0
  react-dom: 19.0.0
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.2.0: Fri Dec  6 19:01:59 PST 2024; root:xnu-11215.61.5~2/RELEASE_ARM64_T6000
  Available memory (MB): 65536
  Available CPU cores: 10
@himanshu-ntml himanshu-ntml added status: needs-triage Possible bug which hasn't been reproduced yet validate-reproduction labels Jan 1, 2025
@AlessioGr AlessioGr added the plugin: richtext-lexical @payloadcms/richtext-lexical label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin: richtext-lexical @payloadcms/richtext-lexical status: needs-triage Possible bug which hasn't been reproduced yet
Projects
None yet
Development

No branches or pull requests

2 participants