Skip to content

v2.3.1 - Bricks Element Fixes

Choose a tag to compare

@KarlosSchmidtos KarlosSchmidtos released this 30 Apr 13:44
· 40 commits to main since this release

Bug fixes for the v2.3.0 Bricks Builder integration, surfaced during initial Liesi staging test:

Fixes

  • PHP warnings on every rowFrontend::render_children() was called with the loop iteration array instead of the Element object. Pass $this through render context.
  • Accordion stayed collapsed on click — user-added child Block had accordion-content-wrapper class baked in, creating a nested element that the same hide rule trapped. Renamed our outer wrapper to a unique .immoadmin-accordion-panel so children can never collide.
  • Click toggle silently no-op'dBricksFunction wrapper 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=ID URL state writes / clears ✓
  • 59 rows render cleanly, no warnings ✓