Skip to content

Commit

Permalink
[Release] Stage to Main (#3497)
Browse files Browse the repository at this point in the history
MWPW-165774 [Mobile-GNAV] page is not scrollable in live page (#3495)

* check for new nav when disabling ios scroll

* shortened the check from the previous commit

Co-authored-by: Raghav Sharma <118168183+sharmrj@users.noreply.github.com>
  • Loading branch information
milo-pr-merge[bot] and sharmrj authored Jan 16, 2025
1 parent 409ed68 commit c56840d
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 c56840d

Please sign in to comment.