From 4b0b5fc8781993463f9bacd35b6d3dc057ced05c Mon Sep 17 00:00:00 2001 From: aleksandrskondratjevs Date: Tue, 1 Nov 2022 17:55:32 +0200 Subject: [PATCH] Fix popup jumping on opening --- packages/scandipwa/src/component/Overlay/Overlay.component.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/scandipwa/src/component/Overlay/Overlay.component.tsx b/packages/scandipwa/src/component/Overlay/Overlay.component.tsx index 93a5d992be..19329d86b9 100644 --- a/packages/scandipwa/src/component/Overlay/Overlay.component.tsx +++ b/packages/scandipwa/src/component/Overlay/Overlay.component.tsx @@ -35,7 +35,7 @@ export class OverlayComponent

(); - YoffsetWhenScrollDisabled = window.pageYOffset || document.body.scrollTop; + YoffsetWhenScrollDisabled = 0; componentDidUpdate(prevProps: P): void { const prevWasVisible = this.getIsVisible(prevProps); @@ -91,6 +91,7 @@ export class OverlayComponent