Collapsed nested paragraphs are not validated before save

Created on 17 March 2022, almost 3 years ago
Updated 5 May 2023, over 1 year ago

Hi, I've got a problem with nested paragraphs (collapsed) not being validated before saving the parent node.

Steps to reproduce

  1. Create a custom paragraph (let's call it Advert) with Title field.
  2. Make Title field required.
  3. Create a custom paragraph (let's call it Adverts) with relation to Advert paragraph via Entity reference revisions field (let's call it Items).
  4. Add Adverts list field to Page node (or some custom bundle, it doesn't matter).
  5. Adverts list field has to be Entity reference revisions field with relation to Adverts paragraph.
  6. Select Paragraphs (stable) widget for Adverts list field.
  7. Go to /node/add/page and add some Advert paragraphs, but leave the Title fields empty.
  8. Click Collapse all button and save the page.

At this moment, page will be saved without validating required Title fields. Without collapsing all paragraphs or collapsing only a single paragraph - validation works as expected.

Does anyone else have this problem?

πŸ› Bug report
Status

Active

Version

1.15

Component

Code

Created by

πŸ‡΅πŸ‡±Poland tivi22

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡§πŸ‡ΎBelarus gun_dose

    I found the same issue. When paragraph contains nested paragraphs, I can collapse paragraph form by clicking on "Edit" button on the neighbor paragraph, in this case paragraph will be collapsed and nested paragraphs will be not validate. I can save them with empty fields that are reqired.

  • πŸ‡©πŸ‡ͺGermany sense-design MΓΌnster

    Same problem here

Production build 0.71.5 2024