diff --git a/contao/templates/frontend/event_filter.html.twig b/contao/templates/frontend/event_filter.html.twig index 44ef145..93f468d 100644 --- a/contao/templates/frontend/event_filter.html.twig +++ b/contao/templates/frontend/event_filter.html.twig @@ -97,6 +97,8 @@ const tagButtons = Array.from(filters.querySelectorAll('button[data-filter-tag]')); const locationSelect = filters.querySelector('#location-filter'); const orgSelect = filters.querySelector('#org-filter'); + const locationWidget = locationSelect?.closest('.widget-select'); + const orgWidget = orgSelect?.closest('.widget-select'); const status = filters.querySelector('#eventfilter-status'); const animationMs = 220; @@ -142,10 +144,12 @@ if (locationSelect) { locationSelect.classList.toggle('active', type === 'location'); + locationWidget?.classList.toggle('active', type === 'location'); } if (orgSelect) { orgSelect.classList.toggle('active', type === 'org'); + orgWidget?.classList.toggle('active', type === 'org'); } };