diff --git a/js/widgets/widget-filter.js b/js/widgets/widget-filter.js index 99a85150..96dfa5fb 100644 --- a/js/widgets/widget-filter.js +++ b/js/widgets/widget-filter.js @@ -962,12 +962,14 @@ } // return if the last search is the same; but filter === false when updating the search // see example-widget-filter.html filter toggle buttons - if ( tsf.equalFilters(c, c.lastSearch, currentFilters) && filter !== false ) { - return; - } else if ( filter === false ) { - // force filter refresh - c.lastCombinedFilter = ''; - c.lastSearch = []; + if ( tsf.equalFilters(c, c.lastSearch, currentFilters) ) { + if ( filter !== false ) { + return; + } else { + // force filter refresh + c.lastCombinedFilter = ''; + c.lastSearch = []; + } } // define filter inside it is false filters = filters || [];