mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-24 19:48:36 +02:00
Fix merge conflict
This commit is contained in:
parent
d66ad28574
commit
0073f3499f
1 changed files with 9 additions and 0 deletions
|
@ -2007,6 +2007,15 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||
closeMoreActionMenu(openAccordionButton);
|
||||
}
|
||||
});
|
||||
|
||||
// Close the filter accordion
|
||||
const openFilterAccordion = document.querySelector('.usa-button--filter[aria-expanded="true"]');
|
||||
const moreFilterAccordion = openFilterAccordion ? openFilterAccordion.closest('.usa-accordion--select') : undefined;
|
||||
if (openFilterAccordion) {
|
||||
if (!moreFilterAccordion.contains(event.target)) {
|
||||
closeFilters();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Initial load
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue