Open Skaiir opened 6 months ago
Following some more considerations, this should not be tackled until we decouple rendering from form state management. I believe we should have a type of "no visual elements" node rendered instead of strictly treating the whole dynamic list as empty (since this is all dynamic relative to hide-if conditions).
So overall, on hold until refactors.
Describe the Bug
Currently it is possible to have a dynamic list with no visual elements (expression). This means we can add a bunch of empty rows to a dynamic list. While this affects the state normally, we would rather simply not allow this.
Further investigations: The issue is more complex as it is also needs to consider cases where hide if causes an empty list element. I think we should accept empty items as part of the debugging process, not caring about whether it stems from expressions, hide if, or any other non-visual element. But instead, we should have a more parseable visually empty state instead of what we see below:
This is a bit of a pain to handle right now, we should wait on the render refactors for this.
Steps to Reproduce
Expected Behavior