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

RichText Input field keeps disappearing from admin panel DOM (for custom block) ? #11340

Open
sharma01ketan opened this issue Feb 21, 2025 · 1 comment
Assignees

Comments

@sharma01ketan
Copy link

Describe the Bug

Link to reproduction

Describe the Bug

Rich Text Input Form instance when nested inside another one, sometimes disappears from the DOM, while typing.
Data is not lost, reappears after refresh.

Expected Behaviour:

The nested rich text fields should be able to receive input from the user properly.

Actual Behavior:

Nested richtext input form sometimes disappears.

Environment:

  • Payload CMS version: (3.23.0)
  • Node.js version v23.5.0
  • Database Postgres by Supabase

To Reproduce:

  • Go to the Community Changelog
  • Fill the necessary fields
  • Fill data in the CTA, at times, the rich text editor form will disappear from the DOM
  • The following process triggers the bug more frequently: Saving the document -> Going back to the admin panel -> Filling rich text in the cta again.

Payload Version:

23.5.0

Adapters and Plugins

  "dependencies": {
    "@payloadcms/db-postgres": "3.23.0",
    "@payloadcms/email-nodemailer": "^3.20.0",
    "@payloadcms/next": "3.23.0",
    "@payloadcms/payload-cloud": "3.23.0",
    "@payloadcms/richtext-lexical": "3.23.0",
    "@payloadcms/storage-s3": "^3.20.0",
...
  }

Video:

rteError.mov

Link to the code that reproduces this issue

https://github.com/sharma01ketan/backend

Reproduction Steps

To Reproduce:

  • Go to the Community Changelog
  • Fill the necessary fields
  • Fill data in the CTA, at times, the rich text editor form will disappear from the DOM
  • The following process triggers the bug more frequently: Saving the document -> Going back to the admin panel -> Filling rich text in the cta again.

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

area: core

Environment Info

yarn run v1.22.22
warning ../../package.json: No license field
warning [email protected]: The engine "pnpm" appears to be invalid.
$ cross-env NODE_OPTIONS=--no-deprecation payload info

Binaries:
  Node: 23.5.0
  npm: 11.1.0
  Yarn: 1.22.22
  pnpm: 9.15.5
Relevant Packages:
  payload: 3.23.0
  next: 15.1.5
  @payloadcms/db-postgres: 3.23.0
  @payloadcms/email-nodemailer: 3.23.0
  @payloadcms/graphql: 3.23.0
  @payloadcms/next/utilities: 3.23.0
  @payloadcms/payload-cloud: 3.23.0
  @payloadcms/plugin-cloud-storage: 3.23.0
  @payloadcms/richtext-lexical: 3.23.0
  @payloadcms/storage-s3: 3.23.0
  @payloadcms/translations: 3.23.0
  @payloadcms/ui/shared: 3.23.0
  react: 19.0.0
  react-dom: 19.0.0
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.4.0: Wed Feb 21 21:44:54 PST 2024; root:xnu-10063.101.15~2/RELEASE_ARM64_T6030
  Available memory (MB): 18432
  Available CPU cores: 11
@sharma01ketan sharma01ketan added status: needs-triage Possible bug which hasn't been reproduced yet validate-reproduction labels Feb 21, 2025
@sharma01ketan
Copy link
Author

Link to the Discord Thread
@GermanJablo Thanks for your attention to the bug, please let me know if any additional input is required.
Thank you

@GermanJablo GermanJablo self-assigned this Feb 22, 2025
@github-actions github-actions bot removed the status: needs-triage Possible bug which hasn't been reproduced yet label Feb 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants