Skip Navigation

[Resolved] How to stop filters from reloading when input changes

This support ticket is created 5 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 1 reply, has 1 voice.

Last updated by ericE-4 5 years, 1 month ago.

Author
Posts
#1402379

I am using filters—a series of checkboxes—with a map, here: hidden link

I have it set so the map is updated when any input changes. However, the filters (for.wpv-filter-form) are also getting refreshed even though they do not change (except for the checkbox being checked/or unchecked). There's no reason for them to be reloaded with every each input change.

The problem is that all the styling is reloaded each time, so the user sees the unstyled content before the styles kick in. Also, I have the checkboxes organized into groups in an accordion control, and because the form reloads, the accordion gets re-initialized again when the input changes, so any currently open accordion tabs become closed.

Is there any way to STOP this unnecessary re-loading of the filters when any input changes?

#1402449

My issue is resolved now. Thank you!