SOLVED: No active state added for radio filters

URL: Forschung - Nikolaus Harnoncourt Zentrum

On the linked page I have inserted a radio filter (the parts “Chronologisch aufsteigend” and “Chronologisch absteigend”). The posts below are generated by a query loop, and the sorting is done by a meta field (ascending and descending). I have set the radios to “buttons” in the Bricks settings.

I have defined some different typography to the “active” buttons, made them bold. But this doesn’t work in the frontend and there is no active class added. This is just for testing purposes because actually I want to hide the active button after the AJAX load for the query loop.

Any idea? If the “active” state doesn’t work: is there a hook that can be called after AJAX completion?

1 Like

Hi @JohnK,

thanks for your report.

I was able to reproduce the bug you mentioned and I’ve added it to our internal bug tracker. It will be fixed.

Best regards,
M

1 Like

Hi guys,

We’ve fixed this issue in Bricks 1.11 BETA, now available as a manual download (Bricks – Account)

Please let us know if you are still experiencing issues.

You can see the full changelog here: Bricks 1.11 Changelog – Bricks

As with any beta release, please do not use it on a production/live website. It is only meant for testing in a local or staging environment.

Best regards,
Matej

Browser : Brave 1.70.126 / Chrome 123.0.6312.87
OS : macOS
URL : https://eleazarl79.sg-host.com/
Video : https://drive.google.com/file/d/1aSF3xoI3gmUeZwFUW-D-Ub5-mPWZseZm/view?usp=sharing

Hi Matej,

I’m using Bricks 1.11 and am facing the same issue. On the site I’m working on there are two filters, the “brx-option-active” class is added on the buttons on the first one but not on the ones of the second filter.

I’ve also noticed that the second filter doesn’t work right when not all projects are loaded since page load (so we use a “load more” to load them all). When reloading the page, once the filter URL parameter has been added, the results show properly, so it seems an AJAX issue. I noticed that the filter’s URL parameter sometimes is added twice, this might be a clue to what’s the cause of the problem.

Let me know if you need something else from my end.

Thank you