Commit 4648581 1 parent 87d6efa commit 4648581 Copy full SHA for 4648581
File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change
1
+ Significance: patch
2
+ Type: bugfix
3
+
4
+ Disable scroll to top when memberships subscribe popup is opened.
Original file line number Diff line number Diff line change @@ -28,8 +28,6 @@ export function handleIframeResult( eventFromIframe ) {
28
28
}
29
29
30
30
export function showModal ( url ) {
31
- window . scrollTo ( 0 , 0 ) ;
32
-
33
31
// prevent double scroll bars. We use the entire viewport for the modal so we need to hide overflow on the body element.
34
32
document . body . classList . add ( 'modal-open' ) ;
35
33
@@ -64,9 +62,6 @@ export function showModal( url ) {
64
62
65
63
window . addEventListener ( 'message' , handleIframeResult , false ) ;
66
64
dialog . showModal ( ) ;
67
-
68
- // This line has to come after the modal has opened otherwise Firefox doesn't scroll to the top.
69
- window . scrollTo ( 0 , 0 ) ;
70
65
}
71
66
72
67
function setUpModal ( button ) {
You can’t perform that action at this time.
0 commit comments