Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit badc1ef

Browse files
Patrik-Lundqvistrschmukler
authored andcommitted
fix(mdUtil): disableBodyScroll no longer scrolls page to top in IE
fixes #4640, fixes #5334, fixes #3627
1 parent ee4ab18 commit badc1ef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/util/util.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ function UtilFactory($document, $timeout, $compile, $rootScope, $$mdAnimate, $in
252252
body.setAttribute('style', restoreBodyStyle);
253253
htmlNode.setAttribute('style', restoreHtmlStyle);
254254
body.scrollTop = scrollOffset;
255+
htmlNode.scrollTop = scrollOffset;
255256
};
256257
}
257258

0 commit comments

Comments
 (0)