Skip to content

Field hooks inside nested lexical blocks do not run #12134

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

Open
hjbugajski opened this issue Apr 16, 2025 · 0 comments
Open

Field hooks inside nested lexical blocks do not run #12134

hjbugajski opened this issue Apr 16, 2025 · 0 comments
Assignees
Labels
plugin: richtext-lexical @payloadcms/richtext-lexical

Comments

@hjbugajski
Copy link

hjbugajski commented Apr 16, 2025

Describe the Bug

Field hooks inside nested lexical blocks do not run. Structure: Lexical -> Block -> Lexical -> Block.

Screen.Recording.2025-04-16.at.2.06.09.PM.mov

Link to the code that reproduces this issue

https://github.com/hjbugajski/payload-nested-blocks-field-hooks

Reproduction Steps

  1. Clone reproduction repository.
  2. Run docker compose up.
  3. Login with email [email protected] and password password.
  4. Go to Pages.
  5. Create new page.
  6. Add Section block.
  7. Add FieldHook block inside the Section block.
  8. Edit field and click "Save."
  9. Check console log for "FieldHook afterChange," it should not appear.
  10. Add FieldHook block to root content.
  11. Edit field and click "Save."
  12. Check console log for "FieldHook afterChange," it should appear.

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

plugin: richtext-lexical

Environment Info

Payload: 3.33.0
Next: 15.3.0
Node: 18
@hjbugajski hjbugajski added status: needs-triage Possible bug which hasn't been reproduced yet validate-reproduction Auto-added tag on create to tell bot to check recreation URL, removed after check. labels Apr 16, 2025
@github-actions github-actions bot removed the validate-reproduction Auto-added tag on create to tell bot to check recreation URL, removed after check. label Apr 16, 2025
@AlessioGr AlessioGr self-assigned this Apr 22, 2025
@github-actions github-actions bot removed the status: needs-triage Possible bug which hasn't been reproduced yet label Apr 22, 2025
@AlessioGr AlessioGr added the plugin: richtext-lexical @payloadcms/richtext-lexical label Apr 22, 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
Projects
None yet
Development

No branches or pull requests

2 participants