wagtail-deprecated / wagtail-react-streamfield

Powerful field for inserting multiple blocks with nesting. (NO LONGER MAINTAINED - See Wagtail 2.13 Release Notes)

Home Page:https://wagtail.github.io/react-streamfield/public/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Validation errors not rendering correctly within nested streamblock

mwesterhof opened this issue · comments

When using the "SomeContainerBlock" from this gist in a page, I run into an issue regarding the rendering of the validation errors. Steps to reproduce:

  1. add the "SomeContainerBlock" to a page
  2. add a "SomeParagraphBlock" or "SomeImageBlock" inside the container
  3. omit any of the values of this child block (all values are required, so this will cause a validation error)
  4. try to save the page

There will indeed be a validation error, there won't be any indication of what the error is or where in the content it occurred. This only seems to happen when we're nesting a block inside a streamblock. We need to be at least 2 levels deep, blocks added directly into a streamfield don't trigger this behavior

This should be fixed by eb9ba40.
Could you please try again please with the new release I will do in the following hours? I’m closing the issue in the meatime and will reopen if the problem still occurs.