Element height doesn't fully collapsed

I use a repeating group of sections, inside each section, there is a content box. I use toggle to hide the content box

I added a repeating group of sub-section inside the content box, not every section has a sub-section.

The problem I’m encountering is that when the section doesn’t have a sub-section the height of the content box isn’t fully collapsing (as shown in the images below)

*It works great when a section does have a subsection (see 3. section)
*The condition on the sub-section element is to make it visible when the section has children sections

Editor:

Preview:

Based on what I’m seeing you need to put the sub-section repeating group into a group container. Then put a conditional on the group to hide when the sub section is empty. Making sure the collapse when hidden option is checked

1 Like