@civicactions/cmsds-open-data-components 3.6.0 → 3.6.1-oe

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -4731,7 +4731,7 @@ const $b9af6ce5e2c06331$var$Header = (props)=>{
4731
4731
  }
4732
4732
  function handleClick(event) {
4733
4733
  // Links are wrapped in spans, this checks if the parent is an A, also check if in the search modal.
4734
- if (menu.current && !menu.current.contains(event.target)) {
4734
+ if (mobileMenuOpen && menu.current && !menu.current.contains(event.target)) {
4735
4735
  setMobileMenuOpen(false);
4736
4736
  closeMobileMenu();
4737
4737
  }