diff --git a/opentech/static_src/src/javascript/main.js b/opentech/static_src/src/javascript/main.js index 8bc430ea6306402d2b4e1ba10bf97bf0971009f4..6504865fab6249cf4ea007485ca38daae9c4efc6 100644 --- a/opentech/static_src/src/javascript/main.js +++ b/opentech/static_src/src/javascript/main.js @@ -129,7 +129,12 @@ // reset mobile filters if they're open past the tablet breakpoint $(window).resize(function resize() { if ($(window).width() < 1024) { + // close the filters if open when reducing the window size $('body').removeClass('filters-open'); + + // update filter button text + $('.js-toggle-filters').text('Filters'); + $('.select2').on('click', (e) => { mobileFilterPadding(e.target); });