Skip to content

Commit

Permalink
remove overflow hidden on body when necessary (#3636)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludoboludo authored Oct 3, 2024
1 parent aa1d1b1 commit 7483ea5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions assets/theme-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
});

Expand Down

0 comments on commit 7483ea5

Please sign in to comment.