diff --git a/Custom_Templates/customer_templates/Walmart Supplier Prod/_analysis-and-reporting-carousel.html.liquid b/Custom_Templates/customer_templates/Walmart Supplier Prod/_analysis-and-reporting-carousel.html.liquid index 5d0cfd56..0a79e83d 100644 --- a/Custom_Templates/customer_templates/Walmart Supplier Prod/_analysis-and-reporting-carousel.html.liquid +++ b/Custom_Templates/customer_templates/Walmart Supplier Prod/_analysis-and-reporting-carousel.html.liquid @@ -71,6 +71,15 @@ $(document).ready(function() { filterWrapper.classList.toggle("filter-active"); }); + document.addEventListener("click", function(event) { + const filterWrapper = document.querySelector('#carousel-filter-wrapper-analysis'); + const isClickInside = filterWrapper.contains(event.target) || event.target.id === "filterToggleAnalysis"; + + if (!isClickInside) { + filterWrapper.classList.remove("filter-active"); + } + }); + function filterCardsAnalysis() { const selectedFilters = Array.from(document.querySelectorAll('#filterContentAnalysis .filter-checkbox:checked')).map(checkbox => checkbox.id.replace('a-', '')); const cards = document.querySelectorAll('.analysis-courses'); diff --git a/Custom_Templates/customer_templates/Walmart Supplier Prod/_getting-started-carousel.html.liquid b/Custom_Templates/customer_templates/Walmart Supplier Prod/_getting-started-carousel.html.liquid index 05ade294..47d7958d 100644 --- a/Custom_Templates/customer_templates/Walmart Supplier Prod/_getting-started-carousel.html.liquid +++ b/Custom_Templates/customer_templates/Walmart Supplier Prod/_getting-started-carousel.html.liquid @@ -1,6 +1,6 @@