I've been tasked with extending the normal Search Options (created with Component Creator, if it matters) to be located on the left of the page, and include a long list of various checkboxes to filter the search - a common feature of large ecommerce sites. I've created a series of custom Joomla input fields that render the checkboxes just as expected, and the filtering itself actually works just fine.
The problem is that the Clear Search button doesn't clear the checked boxes. The custom form field is in the form's XML, and is included in $config['filter_fields']
of the model, and works as a filter just as expected.
So is there an additional entry somewhere that I need to address for Clearing to work? I can't see anything that is being posted that triggers anything, only a class on the button js-stools-btn-clear
, that gets used in jquery.searchtools.js
, and that's where my trail goes cold.
My gut tells me that javascript is clearing the val
of the filter fields somewhere/somehow, and the core code isn't equipped to clear an array of checkboxes.
Any suggestions or ideas would be appreciated. :)