tomusborne / generateblocks

GenerateBlocks is a small collection of lightweight WordPress blocks that can accomplish nearly anything.
https://generateblocks.com
198 stars 23 forks source link

2.0 Query Block - nesting bug #1486

Closed diggeddy closed 4 days ago

diggeddy commented 6 days ago

Description

It is possible to insert a block inside the Looper Block. But doing so breaks the looper and not Query Items are output.

Screenshot 2024-11-14 at 21 29 29

It is however NOT possible to insert a block directly inside the Query block. And this poses a separate UX issue regarding a conditional display of elements based on the query results. Separate issue to be raised.

tomusborne commented 5 days ago

How are you inserting a block inside the Looper? Drag and drop? If so, we can "lock" it, but users can easily unlock it.

It should be possible to add multiple blocks inside of the Looper if you really want to without it removing the loop item. So that's a bug that needs fixing for sure.