diff --git a/assets/reader-activation-auth/auth-modal.js b/assets/reader-activation-auth/auth-modal.js index 760e7b5e3a..dadcfc79ed 100644 --- a/assets/reader-activation-auth/auth-modal.js +++ b/assets/reader-activation-auth/auth-modal.js @@ -46,6 +46,7 @@ export function openAuthModal( config = {} ) { container.config = {}; modal.setAttribute( 'data-state', 'closed' ); document.body.classList.remove( 'newspack-signin' ); + document.body.style.overflow = 'auto'; if ( modal.overlayId && window.newspackReaderActivation?.overlays ) { window.newspackReaderActivation.overlays.remove( modal.overlayId ); } @@ -123,6 +124,7 @@ export function openAuthModal( config = {} ) { container.setFormAction( initialFormAction, true ); document.body.classList.add( 'newspack-signin' ); + document.body.style.overflow = 'hidden'; modal.setAttribute( 'data-state', 'open' ); if ( window.newspackReaderActivation?.overlays ) { modal.overlayId = window.newspackReaderActivation.overlays.add();