Skip to content

Commit 7483ea5

Browse files
authored
remove overflow hidden on body when necessary (#3636)
1 parent aa1d1b1 commit 7483ea5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

assets/theme-editor.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ document.addEventListener('shopify:section:load', () => {
3939
document.addEventListener('shopify:section:unload', (event) => {
4040
document.querySelectorAll(`[data-section="${event.detail.sectionId}"]`).forEach((element) => {
4141
element.remove();
42+
document.body.classList.remove('overflow-hidden');
4243
});
4344
});
4445

0 commit comments

Comments
 (0)