From 3076a7a5dcc451cc2be54d425702c6190e64ccd1 Mon Sep 17 00:00:00 2001 From: Raghav Sharma <118168183+sharmrj@users.noreply.github.com> Date: Thu, 16 Jan 2025 15:00:08 +0530 Subject: [PATCH] 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 --- libs/blocks/global-navigation/utilities/utilities.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/blocks/global-navigation/utilities/utilities.js b/libs/blocks/global-navigation/utilities/utilities.js index 2ab1b87e29..137939d20e 100644 --- a/libs/blocks/global-navigation/utilities/utilities.js +++ b/libs/blocks/global-navigation/utilities/utilities.js @@ -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; }