ISSUE DESCRIPTION: When using Meta Box Group dynamic data on a pseudo element in a Brick query loop, the data is no longer dynamic. Instead, all items in the loop inherit the data from the first returned item.
IMPACT: Bricks users can no longer use dynamic data from Meta Box in a query loop when that data is set to display on a pseudo element.
STEPS TO REPEAT:
- Create a Meta Box field.
- Add two fields to the group: “Letter” and “Description.”
- Assign the following Meta Box Group values to a page:
Letter: A, Description: Awesome
Letter: B, Description: Best
Letter: C, Description: Candle - Create a query loop in Bricks.
- Assign the Meta Box Group’s dynamic data for Letter to a
:before
or:after
pseudo element. - Assign the Meta Box Group’s dynamic data for Description to an element.
EXPECTED RESULT: Query Loop returns the following:
A – Awesome
B – Best
C – Candle
ACTUAL RESULT: Query Loop returns the following:
A – Awesome
A – Best
A – Candle
Browser: Chrome 110
OS: macOS / Windows / Linux / etc.
URL: Link to a page that illustrates this issue
Video: Short screen recording that illustrates this issue (free tool: jam.dev)
[Please describe this bug in as much detail as possible so we can replicate & debug this bug]