wagtail-deprecated / wagtail-react-streamfield

Powerful field for inserting multiple blocks with nesting. (NO LONGER MAINTAINED - See Wagtail 2.13 Release Notes)
https://wagtail.github.io/react-streamfield/public/
BSD 3-Clause "New" or "Revised" License
74 stars 23 forks source link

Validation errors not rendering correctly within nested streamblock #49

Closed mwesterhof closed 4 years ago

mwesterhof commented 5 years ago

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

BertrandBordage commented 4 years ago

This should be fixed by eb9ba4002a15bed67657e6c2b96a4de690089e0c. 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.