diff --git a/theme/static/js/card-multiselect.js b/theme/static/js/card-multiselect.js index a649398..4ac5063 100644 --- a/theme/static/js/card-multiselect.js +++ b/theme/static/js/card-multiselect.js @@ -162,6 +162,10 @@ document.addEventListener('DOMContentLoaded', function() { } }); + if (choicesInstance.getValue(true).length > 0 && window.updateGlobalCardFilters) { + window.updateGlobalCardFilters(); + } + // Listen for increment/decrement clicks (scoped to the choices container). const choicesContainer = selectField.closest('.choices') || document; @@ -212,8 +216,4 @@ document.addEventListener('DOMContentLoaded', function() { } }); }); - - if (choicesInstance.getValue(true).length > 0 && window.updateGlobalCardFilters) { - window.updateGlobalCardFilters(); - } }); \ No newline at end of file