Open
Description
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
- Clone reproduction repository.
- Run
docker compose up
. - Login with email
[email protected]
and passwordpassword
. - Go to
Pages
. - Create new page.
- Add
Section
block. - Add
FieldHook
block inside theSection
block. - Edit field and click "Save."
- Check console log for "FieldHook afterChange," it should not appear.
- Add
FieldHook
block to root content. - Edit field and click "Save."
- 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