v2.3.1 - Bricks Element Fixes
Bug fixes for the v2.3.0 Bricks Builder integration, surfaced during initial Liesi staging test:
Fixes
- PHP warnings on every row —
Frontend::render_children()was called with the loop iteration array instead of the Element object. Pass$thisthrough render context. - Accordion stayed collapsed on click — user-added child Block had
accordion-content-wrapperclass baked in, creating a nested element that the same hide rule trapped. Renamed our outer wrapper to a unique.immoadmin-accordion-panelso children can never collide. - Click toggle silently no-op'd —
BricksFunctionwrapper was never invoked (API mismatch). Switched to plain DOM init +bricks/ajax/*event listeners. Same AJAX-survival, simpler code.
Verified on Liesi staging
- Accordion opens / closes ✓
?unit=IDURL state writes / clears ✓- 59 rows render cleanly, no warnings ✓