From 7483ea50b06f5dfae3c37f17103a339f1092ee05 Mon Sep 17 00:00:00 2001 From: Ludo Date: Thu, 3 Oct 2024 21:18:44 +0200 Subject: [PATCH] remove overflow hidden on body when necessary (#3636) --- assets/theme-editor.js | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/theme-editor.js b/assets/theme-editor.js index 62f96c073e8..d2f08bdc4c0 100644 --- a/assets/theme-editor.js +++ b/assets/theme-editor.js @@ -39,6 +39,7 @@ document.addEventListener('shopify:section:load', () => { document.addEventListener('shopify:section:unload', (event) => { document.querySelectorAll(`[data-section="${event.detail.sectionId}"]`).forEach((element) => { element.remove(); + document.body.classList.remove('overflow-hidden'); }); });