Skip to content

Commit

Permalink
MWPW-165774 [Mobile-GNAV] page is not scrollable in live page (#3495)
Browse files Browse the repository at this point in the history
* check for new nav when disabling ios scroll

* shortened the check from the previous commit
  • Loading branch information
sharmrj authored Jan 16, 2025
1 parent b1351a6 commit 3076a7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/blocks/global-navigation/utilities/utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,8 @@ export function trigger({ element, event, type } = {}) {
closeAllDropdowns({ type });
if (isOpen) return false;
element.setAttribute('aria-expanded', 'true');
if (!isDesktop.matches && type === 'dropdown') disableMobileScroll();
if (!isDesktop.matches && type === 'dropdown'
&& !!document.querySelector('header.new-nav')) disableMobileScroll();
return true;
}

Expand Down

0 comments on commit 3076a7a

Please sign in to comment.